(self)
return output
Read all characters in the buffer.
Read all characters in the buffer.
Read all characters in the buffer .
def read_all_chars(self):
        """Read all characters in the buffer."""
        self._fill_buffer(blocking=False)
        closed = False
        if self._input_buffer and self._input_buffer[-1][0] == u'\x1a':
            closed = True
            self._input_buffer.pop()
            if not self._input_buffer:
                return None
        output = u''.join(
            _char for _char, _, _ in self._input_buffer
        )
        self._input_buffer.clear()
        if closed:
            self._input_buffer.append(u'\x1a')
        return output
def read_all_chars ( self ) : self . _fill_buffer ( blocking = False ) closed = False if self . _input_buffer and self . _input_buffer [ - 1 ] [ 0 ] == u'\x1a' : closed = True self . _input_buffer . pop ( ) if not self . _input_buffer : return None output = u'' . join ( _char for _char , _ , _ in self . _input_buffer ) self . _input_buffer . clear ( ) if closed : self . _input_buffer . append ( u'\x1a' ) return output