This commit is contained in:
Eli Bendersky 2012-07-17 14:25:14 +03:00
commit b48ff7fdda
1 changed files with 1 additions and 5 deletions

View File

@ -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