This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:05eseifertsetrecipients: + eseifert
2012-09-24 10:10:05eseifertsetmessageid: <1348481405.23.0.796569447482.issue16012@psf.upfronthosting.co.za>
2012-09-24 10:10:04eseifertlinkissue16012 messages
2012-09-24 10:10:03eseifertcreate