From c57428d3a0e4d4dfd4d945c75c940c0fc0c47ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 19 Sep 2001 09:55:09 +0000 Subject: Patch to bug #461753: Allow None in ExternalEntityParserCreate. --- Modules/pyexpat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 3311093..30c420d 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; } -- cgit v0.12