(self, data)
Feed encoded data to parser.
Feed encoded data to parser.
Feed encoded data to parser .
def feed(self, data):
        """Feed encoded data to parser."""
        if self._parser is None:
            raise ValueError("feed() called after end of stream")
        if data:
            try:
                self._parser.feed(data)
            except SyntaxError as exc:
                self._events_queue.append(exc)
def feed ( self , data ) : if self . _parser is None : raise ValueError ( "feed() called after end of stream" ) if data : try : self . _parser . feed ( data ) except SyntaxError as exc : self . _events_queue . append ( exc )