summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/xmlcore/sax/__init__.py10
-rw-r--r--Lib/xmlcore/sax/saxutils.py4
-rw-r--r--Lib/xmlcore/sax/xmlreader.py4
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 =====