mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Patch to bug #461753: Allow None in ExternalEntityParserCreate.
This commit is contained in:
parent
5485404293
commit
c57428d3a0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue