mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merge for #14988
This commit is contained in:
commit
b48ff7fdda
1 changed files with 1 additions and 5 deletions
|
@ -3514,12 +3514,8 @@ PyInit__elementtree(void)
|
|||
expat_capi = NULL;
|
||||
}
|
||||
}
|
||||
if (!expat_capi) {
|
||||
PyErr_SetString(
|
||||
PyExc_RuntimeError, "cannot load dispatch table from pyexpat"
|
||||
);
|
||||
if (!expat_capi)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
elementtree_parseerror_obj = PyErr_NewException(
|
||||
"xml.etree.ElementTree.ParseError", PyExc_SyntaxError, NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue