mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
This commit is contained in:
parent
6f80f5d444
commit
e26d3af7ee
3 changed files with 14 additions and 1 deletions
|
|
@ -1035,7 +1035,7 @@ xmlparse_UseForeignDTD(xmlparseobject *self, PyObject *args)
|
|||
PyObject *flagobj = NULL;
|
||||
int flag = 1;
|
||||
enum XML_Error rc;
|
||||
if (!PyArg_ParseTuple(args, "O:UseForeignDTD", &flagobj))
|
||||
if (!PyArg_ParseTuple(args, "|O:UseForeignDTD", &flagobj))
|
||||
return NULL;
|
||||
if (flagobj != NULL) {
|
||||
flag = PyObject_IsTrue(flagobj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue