parameters: (self, s)
docstring: Write string s to the stream if a whole new block
             is ready to be written.
docstring_summary: Write string s to the stream if a whole new block
             is ready to be written.
docstring_tokens: Write string s to the stream if a whole new block is ready to be written .
function: def __write(self, s):
          """Write string s to the stream if a whole new block
             is ready to be written.
          """
          self.buf += s
          while len(self.buf) > self.bufsize:
              self.fileobj.write(self.buf[:self.bufsize])
              self.buf = self.buf[self.bufsize:]
function_tokens: def __write ( self , s ) : self . buf += s while len ( self . buf ) > self . bufsize : self . fileobj . write ( self . buf [ : self . bufsize ] ) self . buf = self . buf [ self . bufsize : ]