mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Tightened xml.sax.__init__.py
This commit is contained in:
parent
fed4f1e9c5
commit
b58e6b10b6
1 changed files with 5 additions and 5 deletions
|
@ -17,12 +17,12 @@ drv_pyexpat -- Driver that allows use of the Expat parser with the classes
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from handler import *
|
from handler import ContentHandler, ErrorHandler
|
||||||
from expatreader import *
|
from expatreader import ExpatParser
|
||||||
from _exceptions import *
|
from _exceptions import SAXException, SAXNotRecognizedException, \
|
||||||
from saxutils import *
|
SAXParseException, SAXNotSupportedException
|
||||||
from _exceptions import SAXParseException
|
|
||||||
import xmlreader
|
import xmlreader
|
||||||
|
import saxutils
|
||||||
|
|
||||||
def parse( filename_or_stream, handler, errorHandler=ErrorHandler() ):
|
def parse( filename_or_stream, handler, errorHandler=ErrorHandler() ):
|
||||||
parser=ExpatParser()
|
parser=ExpatParser()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue