code: def write_line_no_feed(self, line=None, *args, **kwargs):
          
          if line is None:
              # Empty line
              line = ""
          else:
              # Format the line, if arguments have been given
              if args or kwargs:
                  line = line.format(*args, **kwargs)
  
              # Remove the trailing line feed
              if line[-1] == "\n":
                  line = line[:-1]
  
          # Write it
          self.write(line)
          self.flush()
docs: Formats and writes a line to the output