(self)
Finish feeding data to parser and return element structure.
Finish feeding data to parser and return element structure.
Finish feeding data to parser and return element structure .
def close(self):
        """Finish feeding data to parser and return element structure."""
        try:
            self.parser.Parse(b"", True) # end of data
        except self._error as v:
            self._raiseerror(v)
        try:
            close_handler = self.target.close
        except AttributeError:
            pass
        else:
            return close_handler()
        finally:
            # get rid of circular references
            del self.parser, self._parser
            del self.target, self._target
def close ( self ) : try : self . parser . Parse ( b"" , True ) # end of data except self . _error as v : self . _raiseerror ( v ) try : close_handler = self . target . close except AttributeError : pass else : return close_handler ( ) finally : # get rid of circular references del self . parser , self . _parser del self . target , self . _target