Commit 491ded78 authored by Martin v. Löwis's avatar Martin v. Löwis

Remove dependency from saxutils when loading xmlreader

parent 9f11cf88
...@@ -85,8 +85,6 @@ class XMLReader: ...@@ -85,8 +85,6 @@ class XMLReader:
"Sets the value of a SAX2 property." "Sets the value of a SAX2 property."
raise SAXNotRecognizedException("Property '%s' not recognized" % name) raise SAXNotRecognizedException("Property '%s' not recognized" % name)
import saxutils
class IncrementalParser(XMLReader): class IncrementalParser(XMLReader):
"""This interface adds three extra methods to the XMLReader """This interface adds three extra methods to the XMLReader
interface that allow XML parsers to support incremental interface that allow XML parsers to support incremental
...@@ -112,6 +110,7 @@ class IncrementalParser(XMLReader): ...@@ -112,6 +110,7 @@ class IncrementalParser(XMLReader):
XMLReader.__init__(self) XMLReader.__init__(self)
def parse(self, source): def parse(self, source):
import saxutils
source = saxutils.prepare_input_source(source) source = saxutils.prepare_input_source(source)
self.prepareParser(source) self.prepareParser(source)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment