From 8c976bd56a488d5612b1f69b24c45af114219079 Mon Sep 17 00:00:00 2001 From: Ibiam Chihurumnaya Date: Sat, 28 Mar 2020 03:05:20 +0100 Subject: [PATCH] xml.etree.CElementTree deprecated Any activity fails to build with Python 3.9; Traceback (most recent call last): File "setup.py", line 19, in from sugar3.activity import bundlebuilder File "sugar3/activity/bundlebuilder.py", line 44, in import xml.etree.cElementTree as ET ModuleNotFoundError: No module named 'xml.etree.cElementTree' See https://docs.python.org/3.9/whatsnew/3.9.html#removed "The xml.etree.cElementTree module has been removed." Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1817644 Signed-off-by: Ibiam Chihurumnaya Signed-off-by: James Cameron --- src/sugar3/activity/bundlebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sugar3/activity/bundlebuilder.py b/src/sugar3/activity/bundlebuilder.py index 9fd38390..c254b524 100644 --- a/src/sugar3/activity/bundlebuilder.py +++ b/src/sugar3/activity/bundlebuilder.py @@ -42,7 +42,7 @@ import logging from glob import glob from fnmatch import fnmatch from six.moves.configparser import ConfigParser -import xml.etree.cElementTree as ET +import xml.etree.ElementTree as ET from six.moves.html_parser import HTMLParser from sugar3 import env