mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Use explicit relative import to make this work again.
This commit is contained in:
parent
ba205d6971
commit
3b271054d7
3 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue