]> granicus.if.org Git - python/commitdiff
Remove dependency from saxutils when loading xmlreader
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 29 Sep 2000 18:59:50 +0000 (18:59 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 29 Sep 2000 18:59:50 +0000 (18:59 +0000)
Lib/xml/sax/xmlreader.py

index c381fd48931fffa36cb9bcb90f402cade14f19e4..fea674bbaf9a56cc2c68283978c0d2eced91f22f 100644 (file)
@@ -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)