summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2020-03-26 15:17:37 -0400
committerChristoph Reiter <reiter.christoph@gmail.com>2020-04-05 15:53:45 +0200
commit44bb1c68e9ae7bfb4f4ac20d6c01f3606627760f (patch)
treeed32757c0fb94a8b35d596292a75b13155892371
parente809109017208e716c4c433f03db743846da4a43 (diff)
downloadgobject-introspection-44bb1c68e9ae7bfb4f4ac20d6c01f3606627760f.tar.gz
Replace calls to deprecated xml.etree.cElementTree
cElementTree was removed in Python 3.9 in favor of ElementTree, which has used a fast, native implementation since Python 3.3. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1817649 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
-rw-r--r--giscanner/gdumpparser.py2
-rw-r--r--giscanner/girparser.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/gdumpparser.py b/giscanner/gdumpparser.py
index 1730fee5..e7ccf575 100644
--- a/giscanner/gdumpparser.py
+++ b/giscanner/gdumpparser.py
@@ -22,7 +22,7 @@ import os
import sys
import tempfile
import subprocess
-from xml.etree.cElementTree import parse
+from xml.etree.ElementTree import parse
from . import ast
from . import message
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 0a6c687b..35206a41 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -21,7 +21,7 @@
import os
from collections import OrderedDict
-from xml.etree.cElementTree import parse
+from xml.etree.ElementTree import parse
from . import ast
from .girwriter import COMPATIBLE_GIR_VERSION