mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +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;
|
expat_capi = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!expat_capi) {
|
if (!expat_capi)
|
||||||
PyErr_SetString(
|
|
||||||
PyExc_RuntimeError, "cannot load dispatch table from pyexpat"
|
|
||||||
);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
elementtree_parseerror_obj = PyErr_NewException(
|
elementtree_parseerror_obj = PyErr_NewException(
|
||||||
"xml.etree.ElementTree.ParseError", PyExc_SyntaxError, NULL
|
"xml.etree.ElementTree.ParseError", PyExc_SyntaxError, NULL
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue