parameters: (self, x)
docstring: Write a string into the output stream.
docstring_summary: Write a string into the output stream.
docstring_tokens: Write a string into the output stream .
function: def write(self, x):
          """Write a string into the output stream."""
          if self._new_lines:
              if not self._first_write:
                  self.stream.write('\n' * self._new_lines)
                  self.code_lineno += self._new_lines
                  if self._write_debug_info is not None:
                      self.debug_info.append((self._write_debug_info,
                                              self.code_lineno))
                      self._write_debug_info = None
              self._first_write = False
              self.stream.write('    ' * self._indentation)
              self._new_lines = 0
          self.stream.write(x)
function_tokens: def write ( self , x ) : if self . _new_lines : if not self . _first_write : self . stream . write ( '\n' * self . _new_lines ) self . code_lineno += self . _new_lines if self . _write_debug_info is not None : self . debug_info . append ( ( self . _write_debug_info , self . code_lineno ) ) self . _write_debug_info = None self . _first_write = False self . stream . write ( '    ' * self . _indentation ) self . _new_lines = 0 self . stream . write ( x )