[New-bugs-announce] [issue16012] pyexpat: Argument for UseForeignDTD should be optional
Erich Seifert
report at bugs.python.org
Mon Sep 24 12:10:05 CEST 2012
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 <report at bugs.python.org>
<http://bugs.python.org/issue16012>
_______________________________________
More information about the New-bugs-announce
mailing list