From 491ded78ccd2b1fff10090e4d11ef42a9732bfdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 29 Sep 2000 18:59:50 +0000 Subject: Remove dependency from saxutils when loading xmlreader --- Lib/xml/sax/xmlreader.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py index c381fd4..fea674b 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) -- cgit v0.12