mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Now uses make_parser to create its parser (patch 101573).
This commit is contained in:
parent
ae43e5205d
commit
b798c0109f
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import minidom
|
|||
import types
|
||||
import string
|
||||
import sys
|
||||
from xml.sax import ExpatParser
|
||||
import xml.sax
|
||||
|
||||
#todo: SAX2/namespace handling
|
||||
|
||||
|
@ -166,7 +166,7 @@ class DOMEventStream:
|
|||
|
||||
|
||||
def _getParser():
|
||||
return ExpatParser()
|
||||
return xml.sax.make_parser()
|
||||
|
||||
default_bufsize=(2**14)-20
|
||||
# FIXME: move into sax package for common usage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue