Do not hardcode Expat version. It's possible to build Python with --with-system-expat option.
This commit is contained in:
parent
3b2abe95e5
commit
ece29b2aac
|
@ -586,8 +586,8 @@ def parsefile():
|
|||
</ns0:root>
|
||||
|
||||
>>> parser = ET.XMLParser()
|
||||
>>> parser.version # XXX: Upgrade to 2.0.1?
|
||||
'Expat 2.0.0'
|
||||
>>> parser.version # doctest: +ELLIPSIS
|
||||
'Expat ...'
|
||||
>>> parser.feed(open(SIMPLE_XMLFILE).read())
|
||||
>>> print serialize(parser.close())
|
||||
<root>
|
||||
|
|
Loading…
Reference in New Issue