Commit 66099b0c authored by Eli Bendersky's avatar Eli Bendersky

ISsue #14988: restore Python 2's behavior of raising ImportError when unable...

ISsue #14988: restore Python 2's behavior of raising ImportError when unable to load pyexpat, instead of a SystemError/RuntimeError
parent 954d46b2
......@@ -3117,6 +3117,8 @@ PyInit__elementtree(void)
expat_capi->MICRO_VERSION != XML_MICRO_VERSION)
expat_capi = NULL;
}
if (!expat_capi)
return NULL;
#endif
elementtree_parseerror_obj = PyErr_NewException(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment