diff options
author | Guido van Rossum <guido@python.org> | 2006-08-17 09:10:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-17 09:10:09 (GMT) |
commit | 3b271054d7b2300d94f7f1bd3cb48d513d371c70 (patch) | |
tree | e0886cc8bd38630184d23f4d78ff52e0501d48f9 /Lib/xml | |
parent | ba205d6971db8ec8523e7a8f5a86422b1bfcc9f5 (diff) | |
download | cpython-3b271054d7b2300d94f7f1bd3cb48d513d371c70.zip cpython-3b271054d7b2300d94f7f1bd3cb48d513d371c70.tar.gz cpython-3b271054d7b2300d94f7f1bd3cb48d513d371c70.tar.bz2 |
Use explicit relative import to make this work again.
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/sax/__init__.py | 6 | ||||
-rw-r--r-- | Lib/xml/sax/saxutils.py | 4 | ||||
-rw-r--r-- | Lib/xml/sax/xmlreader.py | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/Lib/xml/sax/__init__.py b/Lib/xml/sax/__init__.py index 6b1b1ba..054064c 100644 --- a/Lib/xml/sax/__init__.py +++ b/Lib/xml/sax/__init__.py @@ -19,9 +19,9 @@ xmlreader -- Base classes and constants which define the SAX 2 API for expatreader -- Driver that allows use of the Expat parser with SAX. """ -from xmlreader import InputSource -from handler import ContentHandler, ErrorHandler -from _exceptions import SAXException, SAXNotRecognizedException, \ +from .xmlreader import InputSource +from .handler import ContentHandler, ErrorHandler +from ._exceptions import SAXException, SAXNotRecognizedException, \ SAXParseException, SAXNotSupportedException, \ SAXReaderNotAvailable diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index a496519..b5b9ff3 100644 --- a/Lib/xml/sax/saxutils.py +++ b/Lib/xml/sax/saxutils.py @@ -4,8 +4,8 @@ convenience of application and driver writers. """ import os, urlparse, urllib, types -import handler -import xmlreader +from . import handler +from . import xmlreader try: _StringTypes = [types.StringType, types.UnicodeType] 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) |