summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-09-24 11:17:08 (GMT)
committerChristian Heimes <christian@cheimes.de>2012-09-24 11:17:08 (GMT)
commit8112ea2360b1a536b4931fd13173a7bbe5ac7aa1 (patch)
tree3c5f93b0287b18e789c1e19b38a430dd9030a131 /Modules/pyexpat.c
parentcadff70ba5a761e5899d09c918ad6c87cfb07b7d (diff)
downloadcpython-8112ea2360b1a536b4931fd13173a7bbe5ac7aa1.zip
cpython-8112ea2360b1a536b4931fd13173a7bbe5ac7aa1.tar.gz
cpython-8112ea2360b1a536b4931fd13173a7bbe5ac7aa1.tar.bz2
Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 4d9a1e5..f269113 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1176,7 +1176,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);