From 1bf63196f91c0356e0373843cbd851dbd42ec25f Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 24 Sep 2012 13:17:08 +0200 Subject: Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD() method doesn't require an argument again. --- Modules/pyexpat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/pyexpat.c') 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); -- cgit v1.2.1