Message171108
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. |
|
Date |
User |
Action |
Args |
2012-09-24 10:10:05 | eseifert | set | recipients:
+ eseifert |
2012-09-24 10:10:05 | eseifert | set | messageid: <1348481405.23.0.796569447482.issue16012@psf.upfronthosting.co.za> |
2012-09-24 10:10:04 | eseifert | link | issue16012 messages |
2012-09-24 10:10:03 | eseifert | create | |
|