diff options
author | Christian Heimes <christian@cheimes.de> | 2012-09-24 11:17:08 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-09-24 11:17:08 (GMT) |
commit | e26d3af7ee5b8ce804786d31ecfda173d92d7ab0 (patch) | |
tree | b249f6950422d62999443fdb56d499f8b7e27f1d /Modules/pyexpat.c | |
parent | 6f80f5d4446f06d15274ad519cae6929a3565cc0 (diff) | |
download | cpython-e26d3af7ee5b8ce804786d31ecfda173d92d7ab0.zip cpython-e26d3af7ee5b8ce804786d31ecfda173d92d7ab0.tar.gz cpython-e26d3af7ee5b8ce804786d31ecfda173d92d7ab0.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index c965ff4..4b9687a 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); |