From: Martin v. Löwis Date: Fri, 29 Sep 2000 18:59:50 +0000 (+0000) Subject: Remove dependency from saxutils when loading xmlreader X-Git-Tag: v2.0c1~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=491ded78ccd2b1fff10090e4d11ef42a9732bfdd;p=python Remove dependency from saxutils when loading xmlreader --- diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py index c381fd4893..fea674bbaf 100644 --- a/Lib/xml/sax/xmlreader.py +++ b/Lib/xml/sax/xmlreader.py @@ -85,8 +85,6 @@ class XMLReader: "Sets the value of a SAX2 property." raise SAXNotRecognizedException("Property '%s' not recognized" % name) -import saxutils - class IncrementalParser(XMLReader): """This interface adds three extra methods to the XMLReader interface that allow XML parsers to support incremental @@ -112,6 +110,7 @@ class IncrementalParser(XMLReader): XMLReader.__init__(self) def parse(self, source): + import saxutils source = saxutils.prepare_input_source(source) self.prepareParser(source)