commit | c57428d3a0e4d4dfd4d945c75c940c0fc0c47ee3 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Wed Sep 19 09:55:09 2001 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Wed Sep 19 09:55:09 2001 +0000 |
tree | a4a16da52958ee4060c0212fe094c9696f0d82c7 | |
parent | 548540429356ade1cbd8e4095d07151832b66ef0 [diff] [blame] |
Patch to bug #461753: Allow None in ExternalEntityParserCreate.
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 @@ xmlparseobject *new_parser; int i; - if (!PyArg_ParseTuple(args, "s|s:ExternalEntityParserCreate", + if (!PyArg_ParseTuple(args, "z|s:ExternalEntityParserCreate", &context, &encoding)) { return NULL; }