summaryrefslogtreecommitdiff
path: root/defusedxml/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'defusedxml/common.py')
-rw-r--r--defusedxml/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/defusedxml/common.py b/defusedxml/common.py
index 7e4bb0b..dd750ab 100644
--- a/defusedxml/common.py
+++ b/defusedxml/common.py
@@ -9,6 +9,8 @@ import sys
import xml.parsers.expat
PY3 = sys.version_info[0] == 3
+# Python 3.9 removed cElementTree module
+_HAVE_CELEMENTTREE = sys.version_info < (3, 9, 0)
# Fail early when pyexpat is not installed correctly
if not hasattr(xml.parsers.expat, "ParserCreate"):