summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_elementtree.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 6415797..a7201a5 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -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