parameters: (self)
docstring: Flush any queued up data in the write buffer and ensure the
          compression buffer is flushed out to the underlying transport
docstring_summary: Flush any queued up data in the write buffer and ensure the
          compression buffer is flushed out to the underlying transport
docstring_tokens: Flush any queued up data in the write buffer and ensure the compression buffer is flushed out to the underlying transport
function: def flush(self):
          """Flush any queued up data in the write buffer and ensure the
          compression buffer is flushed out to the underlying transport
          """
          wout = self.__wbuf.getvalue()
          if len(wout) > 0:
              zbuf = self._zcomp_write.compress(wout)
              self.bytes_out += len(wout)
              self.bytes_out_comp += len(zbuf)
          else:
              zbuf = ''
          ztail = self._zcomp_write.flush(zlib.Z_SYNC_FLUSH)
          self.bytes_out_comp += len(ztail)
          if (len(zbuf) + len(ztail)) > 0:
              self.__wbuf = BufferIO()
              self.__trans.write(zbuf + ztail)
          self.__trans.flush()
function_tokens: def flush ( self ) : wout = self . __wbuf . getvalue ( ) if len ( wout ) > 0 : zbuf = self . _zcomp_write . compress ( wout ) self . bytes_out += len ( wout ) self . bytes_out_comp += len ( zbuf ) else : zbuf = '' ztail = self . _zcomp_write . flush ( zlib . Z_SYNC_FLUSH ) self . bytes_out_comp += len ( ztail ) if ( len ( zbuf ) + len ( ztail ) ) > 0 : self . __wbuf = BufferIO ( ) self . __trans . write ( zbuf + ztail ) self . __trans . flush ( )