Skip to content

Commit ae07d1f

Browse files
committed
The xml.etree.ElementTree module implements a simple and efficient API for parsing and creating XML data.
Changed in version 3.3: This module will use a fast implementation whenever available. Deprecated since version 3.3: The xml.etree.cElementTree module is deprecated.
1 parent d5d68c2 commit ae07d1f

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/python/Plugins/SystemPlugins/ViX/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from os import listdir, path, stat
22
from sys import modules
3-
import xml.etree.cElementTree
3+
import xml.etree.ElementTree
44

55
from Plugins.Plugin import PluginDescriptor
66
from Components.config import config
@@ -70,7 +70,7 @@ def checkConfigBackup():
7070

7171

7272
file = open("%s/menu.xml" % path.dirname(modules[__name__].__file__), 'r')
73-
mdom = xml.etree.cElementTree.parse(file)
73+
mdom = xml.etree.ElementTree.parse(file)
7474
file.close()
7575

7676

lib/python/Screens/Menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
from enigma import eTimer
2424

25-
import xml.etree.cElementTree
25+
import xml.etree.ElementTree
2626

2727
from gettext import dgettext
2828

2929
# read the menu... recovery.xml is an abreviated version of menu.xml used for slot 0 (recovery image).
3030
file = open(resolveFilename(SCOPE_SKINS, 'menu.xml' if SystemInfo["MultiBootSlot"] != 0 else 'recovery.xml'), 'r')
31-
mdom = xml.etree.cElementTree.parse(file)
31+
mdom = xml.etree.ElementTree.parse(file)
3232
file.close()
3333

3434

lib/python/Screens/Setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from xml.etree.cElementTree import fromstring
1+
from xml.etree.ElementTree import fromstring
22

33
from gettext import dgettext
44
from os.path import getmtime, join as pathjoin

lib/python/Tools/Directories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from sys import _getframe as getframe
1212
from unicodedata import normalize
1313
from traceback import print_exc
14-
from xml.etree.cElementTree import Element, fromstring, parse
14+
from xml.etree.ElementTree import Element, fromstring, parse
1515

1616
SCOPE_HOME = 0 # DEBUG: Not currently used in Enigma2.
1717
SCOPE_LANGUAGE = 1

lib/python/skin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from xml.etree.cElementTree import Element, ElementTree, fromstring
1+
from xml.etree.ElementTree import Element, ElementTree, fromstring
22

33
from enigma import addFont, eLabel, ePixmap, ePoint, eRect, eSize, eWidget, eStack, eRectangle, eWindow, eWindowStyleManager, eWindowStyleSkinned, getDesktop, gFont, getFontFaces, gMainDC, gRGB, BT_ALPHATEST, BT_ALPHABLEND, BT_HALIGN_CENTER, BT_HALIGN_LEFT, BT_HALIGN_RIGHT, BT_KEEP_ASPECT_RATIO, BT_SCALE, BT_VALIGN_BOTTOM, BT_VALIGN_CENTER, BT_VALIGN_TOP
44
from os.path import basename, dirname, isdir, isfile, join

tests/test_timer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def test_timer(repeat=0, timer_start=3600, timer_length=1000, sim_length=86400 *
2222
t.timer_list = []
2323

2424
# generate a timer to test
25-
import xml.etree.cElementTree
25+
import xml.etree.ElementTree
2626
import RecordTimer
2727

28-
timer = RecordTimer.createTimer(xml.etree.cElementTree.fromstring(
28+
timer = RecordTimer.createTimer(xml.etree.ElementTree.fromstring(
2929
"""
3030
<timer
3131
begin="%d"

0 commit comments

Comments
 (0)