diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2000-09-29 18:59:50 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2000-09-29 18:59:50 (GMT) |
commit | 491ded78ccd2b1fff10090e4d11ef42a9732bfdd (patch) | |
tree | 2d334495171ecb52392dd2cb676bd3ec116214e2 /Lib/xml | |
parent | 9f11cf8811905cece21d7728536c042ecadf1188 (diff) | |
download | cpython-491ded78ccd2b1fff10090e4d11ef42a9732bfdd.zip cpython-491ded78ccd2b1fff10090e4d11ef42a9732bfdd.tar.gz cpython-491ded78ccd2b1fff10090e4d11ef42a9732bfdd.tar.bz2 |
Remove dependency from saxutils when loading xmlreader
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/sax/xmlreader.py | 3 |
1 files changed, 1 insertions, 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) |