Message171108
| Author |
eseifert |
| Recipients |
eseifert |
| Date |
2012年09月24日.10:10:03 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1348481405.23.0.796569447482.issue16012@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|