]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use explicit relative import to make this work again.
authorGuido van Rossum <guido@python.org>
Thu, 17 Aug 2006 09:10:09 +0000 (09:10 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Aug 2006 09:10:09 +0000 (09:10 +0000)
Lib/xml/sax/__init__.py
Lib/xml/sax/saxutils.py
Lib/xml/sax/xmlreader.py

index 6b1b1ba00712e4f3166eb680baba574d8ab6a2fb..054064c4a6cbecc66b8d76c7d12c07188b3ee095 100644 (file)
@@ -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
 
index a4965192fa833a75cdcbdce45f82d1842d52378c..b5b9ff336273ee332c5d546b6bce6fbdac418519 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..1cade65fe0c7059d68f9bf2a5cb24e590ffd5f6c 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 =====
@@ -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)