summaryrefslogtreecommitdiffstats
path: root/Modules/_elementtree.c
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-07-17 11:25:14 (GMT)
committerEli Bendersky <eliben@gmail.com>2012-07-17 11:25:14 (GMT)
commitb48ff7fdda149949c5af4123af9fec5aedc9f12b (patch)
tree4585e33db2a5edd43ddf5453730c802bdca4f520 /Modules/_elementtree.c
parent1815191f1722546f6af2b5207df4efaa50be38fd (diff)
parentceb23316c85022541bac39c7ce814a659c7e1962 (diff)
downloadcpython-b48ff7fdda149949c5af4123af9fec5aedc9f12b.zip
cpython-b48ff7fdda149949c5af4123af9fec5aedc9f12b.tar.gz
cpython-b48ff7fdda149949c5af4123af9fec5aedc9f12b.tar.bz2
Merge for #14988
Diffstat (limited to 'Modules/_elementtree.c')
-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