summaryrefslogtreecommitdiff
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-09-24 13:17:08 +0200
committerChristian Heimes <christian@cheimes.de>2012-09-24 13:17:08 +0200
commit1bf63196f91c0356e0373843cbd851dbd42ec25f (patch)
tree7d012d3b752b73813bfec238ff4a9adb64afe0b0 /Modules/pyexpat.c
parent24c61c76dbd3f2fa63fde5929d0a80728c732c26 (diff)
downloadcpython-1bf63196f91c0356e0373843cbd851dbd42ec25f.tar.gz
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 c965ff4aa0..4b9687a051 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -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);