mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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;
|
xmlparseobject *new_parser;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "s|s:ExternalEntityParserCreate",
|
if (!PyArg_ParseTuple(args, "z|s:ExternalEntityParserCreate",
|
||||||
&context, &encoding)) {
|
&context, &encoding)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue