]> granicus.if.org Git - python/commitdiff
Use *absolute* imports now that they are required. (Should this go into 2.5?)
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 24 Mar 2006 07:47:46 +0000 (07:47 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 24 Mar 2006 07:47:46 +0000 (07:47 +0000)
Lib/xmlcore/sax/__init__.py
Lib/xmlcore/sax/saxutils.py
Lib/xmlcore/sax/xmlreader.py

index f1e467c470d0e1467513ebdf18a188f23f343baa..8afbdb003618a389e6dc0b60e2356ffa62df6a21 100644 (file)
@@ -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()):
index 582b0089c4bf6d98e636198d085f21ef3ba9d709..880de80cf44b846955e3c9171112e3aa5050355e 100644 (file)
@@ -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]
index 9a2361e349d0a33b50cc06c80ededa2b3c4e5947..6b37d37ab4e687a78b1b6c630a3eb327af327976 100644 (file)
@@ -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 =====