Kaydet (Commit) 3b271054 authored tarafından Guido van Rossum's avatar Guido van Rossum

Use explicit relative import to make this work again.

üst ba205d69
......@@ -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
......
......@@ -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]
......
"""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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment