summaryrefslogtreecommitdiffstats
path: root/Lib/xml/sax/xmlreader.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-17 09:10:09 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-17 09:10:09 (GMT)
commit3b271054d7b2300d94f7f1bd3cb48d513d371c70 (patch)
treee0886cc8bd38630184d23f4d78ff52e0501d48f9 /Lib/xml/sax/xmlreader.py
parentba205d6971db8ec8523e7a8f5a86422b1bfcc9f5 (diff)
downloadcpython-3b271054d7b2300d94f7f1bd3cb48d513d371c70.zip
cpython-3b271054d7b2300d94f7f1bd3cb48d513d371c70.tar.gz
cpython-3b271054d7b2300d94f7f1bd3cb48d513d371c70.tar.bz2
Use explicit relative import to make this work again.
Diffstat (limited to 'Lib/xml/sax/xmlreader.py')
-rw-r--r--Lib/xml/sax/xmlreader.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py
index 9a2361e..1cade65 100644
--- a/Lib/xml/sax/xmlreader.py
+++ b/Lib/xml/sax/xmlreader.py
@@ -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 @@ class IncrementalParser(XMLReader):
XMLReader.__init__(self)
def parse(self, source):
- import saxutils
+ from . import saxutils
source = saxutils.prepare_input_source(source)
self.prepareParser(source)