diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-09-19 09:55:09 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-09-19 09:55:09 (GMT) |
commit | c57428d3a0e4d4dfd4d945c75c940c0fc0c47ee3 (patch) | |
tree | a4a16da52958ee4060c0212fe094c9696f0d82c7 /Modules | |
parent | 548540429356ade1cbd8e4095d07151832b66ef0 (diff) | |
download | cpython-c57428d3a0e4d4dfd4d945c75c940c0fc0c47ee3.zip cpython-c57428d3a0e4d4dfd4d945c75c940c0fc0c47ee3.tar.gz cpython-c57428d3a0e4d4dfd4d945c75c940c0fc0c47ee3.tar.bz2 |
Patch to bug #461753: Allow None in ExternalEntityParserCreate.
Diffstat (limited to 'Modules')
-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 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; } |