diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-24 07:47:46 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-24 07:47:46 (GMT) |
commit | 2def11a90d1ea89af46c32ccb7e5dbe0bcaff73a (patch) | |
tree | 98d0111e74647059ba5c6326bfc28f730dd31ea3 /Lib/xmlcore | |
parent | c3e54b848000e8cd2fc28ea29f3f8a0163aa075f (diff) | |
download | cpython-2def11a90d1ea89af46c32ccb7e5dbe0bcaff73a.zip cpython-2def11a90d1ea89af46c32ccb7e5dbe0bcaff73a.tar.gz cpython-2def11a90d1ea89af46c32ccb7e5dbe0bcaff73a.tar.bz2 |
Use *absolute* imports now that they are required. (Should this go into 2.5?)
Diffstat (limited to 'Lib/xmlcore')
-rw-r--r-- | Lib/xmlcore/sax/__init__.py | 10 | ||||
-rw-r--r-- | Lib/xmlcore/sax/saxutils.py | 4 | ||||
-rw-r--r-- | Lib/xmlcore/sax/xmlreader.py | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/Lib/xmlcore/sax/__init__.py b/Lib/xmlcore/sax/__init__.py index f1e467c..8afbdb0 100644 --- a/Lib/xmlcore/sax/__init__.py +++ b/Lib/xmlcore/sax/__init__.py @@ -19,11 +19,11 @@ 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, \ - SAXParseException, SAXNotSupportedException, \ - SAXReaderNotAvailable +from .xmlreader import InputSource +from .handler import ContentHandler, ErrorHandler +from ._exceptions import (SAXException, SAXNotRecognizedException, + SAXParseException, SAXNotSupportedException, + SAXReaderNotAvailable) def parse(source, handler, errorHandler=ErrorHandler()): diff --git a/Lib/xmlcore/sax/saxutils.py b/Lib/xmlcore/sax/saxutils.py index 582b008..880de80 100644 --- a/Lib/xmlcore/sax/saxutils.py +++ b/Lib/xmlcore/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/xmlcore/sax/xmlreader.py b/Lib/xmlcore/sax/xmlreader.py index 9a2361e..6b37d37 100644 --- a/Lib/xmlcore/sax/xmlreader.py +++ b/Lib/xmlcore/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 ===== |