Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c57428d

Browse files
committed
Patch to bug #461753: Allow None in ExternalEntityParserCreate.
1 parent 5485404 commit c57428d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/pyexpat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ xmlparse_ExternalEntityParserCreate(xmlparseobject *self, PyObject *args)
969969
xmlparseobject *new_parser;
970970
int i;
971971

972-
if (!PyArg_ParseTuple(args, "s|s:ExternalEntityParserCreate",
972+
if (!PyArg_ParseTuple(args, "z|s:ExternalEntityParserCreate",
973973
&context, &encoding)) {
974974
return NULL;
975975
}

0 commit comments

Comments
 (0)