mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Remove dependency from saxutils when loading xmlreader
This commit is contained in:
parent
9f11cf8811
commit
491ded78cc
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue