From: Martin v. Löwis Date: Wed, 19 Sep 2001 09:55:09 +0000 (+0000) Subject: Patch to bug #461753: Allow None in ExternalEntityParserCreate. X-Git-Tag: v2.2.1c1~1736 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c57428d3a0e4d4dfd4d945c75c940c0fc0c47ee3;p=python Patch to bug #461753: Allow None in ExternalEntityParserCreate. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 33110933b3..30c420d979 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -969,7 +969,7 @@ xmlparse_ExternalEntityParserCreate(xmlparseobject *self, PyObject *args) xmlparseobject *new_parser; int i; - if (!PyArg_ParseTuple(args, "s|s:ExternalEntityParserCreate", + if (!PyArg_ParseTuple(args, "z|s:ExternalEntityParserCreate", &context, &encoding)) { return NULL; }