diff options
author | Guido van Rossum <guido@python.org> | 2006-08-17 09:10:09 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-17 09:10:09 +0000 |
commit | 634c525223e8ae6a67ea4e0ce306bfa7cc8ab4ab (patch) | |
tree | 8adcf5278d459e0e946da803f21ac3590f5e0e0c /Lib/xml | |
parent | 8c2ec272ec8c34662b83c9c0e9ea6851e38b62b6 (diff) | |
download | cpython-634c525223e8ae6a67ea4e0ce306bfa7cc8ab4ab.tar.gz |
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 6b1b1ba007..054064c4a6 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 a4965192fa..b5b9ff3362 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 9a2361e349..1cade65fe0 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) |