Mercurial > cpython-lru_cache-weakref
diff Lib/xml/sax/xmlreader.py @ 39539:cb673ed507a7
Use explicit relative import to make this work again.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Aug 2006 09:10:09 +0000 |
| parents | 654c380cf8b9 |
| children | c557d4474f0f |
line wrap: on
line diff
--- a/Lib/xml/sax/xmlreader.py Thu Aug 17 08:57:26 2006 +0000 +++ b/Lib/xml/sax/xmlreader.py Thu Aug 17 09:10:09 2006 +0000 @@ -1,9 +1,9 @@ """An XML Reader is the SAX 2 name for an XML parser. XML Parsers should be based on this code. """ -import handler +from . import handler -from _exceptions import SAXNotSupportedException, SAXNotRecognizedException +from ._exceptions import SAXNotSupportedException, SAXNotRecognizedException # ===== XMLREADER ===== @@ -113,7 +113,7 @@ XMLReader.__init__(self) def parse(self, source): - import saxutils + from . import saxutils source = saxutils.prepare_input_source(source) self.prepareParser(source)
