summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-09-24 11:41:52 (GMT)
committerGeorg Brandl <georg@python.org>2012-09-24 11:41:52 (GMT)
commitd37b9d7e1bd08c418a26e7216addf9d5e78419fb (patch)
tree95e0f9b2e53d1d511392ae2356f94b1f6fdadedf /Modules/pyexpat.c
parentf2487177eba8c8e88ab3c11344720f4df6000d72 (diff)
downloadcpython-d37b9d7e1bd08c418a26e7216addf9d5e78419fb.zip
cpython-d37b9d7e1bd08c418a26e7216addf9d5e78419fb.tar.gz
cpython-d37b9d7e1bd08c418a26e7216addf9d5e78419fb.tar.bz2
Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD() method.
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 bd27268..3f59f0f 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1035,7 +1035,7 @@ xmlparse_UseForeignDTD(xmlparseobject *self, PyObject *args)
{
int flag = 1;
enum XML_Error rc;
- if (!PyArg_ParseTuple(args, "p:UseForeignDTD", &flag))
+ if (!PyArg_ParseTuple(args, "|p:UseForeignDTD", &flag))
return NULL;
rc = XML_UseForeignDTD(self->itself, flag ? XML_TRUE : XML_FALSE);
if (rc != XML_ERROR_NONE) {