New submission from Erich Seifert:
It seems the recent changes to Modules/pyexpat.c made the boolean 'flag' for
UseForeignDTD mandatory although it was optional in previous Python releases.
According to the docs the usage is UseForeignDTD([flag]), but calling
UseForeignDTD without arguments leads to an error::
>>> from xml.parsers import expat
>>> parser = expat.ParserCreate('utf8')
>>> parser.UseForeignDTD()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: UseForeignDTD() takes exactly 1 argument (0 given)
This was tested with version bfdf366a779a from hg repository.
----------
components: Extension Modules
messages: 171108
nosy: eseifert
priority: normal
severity: normal
status: open
title: pyexpat: Argument for UseForeignDTD should be optional
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com