Remove deprecated `cElementTree`

Deprecated since version 3.3: The xml.etree.cElementTree module is deprecated.
This commit is contained in:
Rotzbua 2022-12-28 18:14:57 +01:00 committed by Florian Festi
parent 2e98f0fee0
commit 5f9f704869
2 changed files with 2 additions and 6 deletions

View File

@ -3,11 +3,7 @@ import datetime
from affine import Affine
from boxes.extents import Extents
from boxes.Color import Color as bColor
try:
from xml.etree import cElementTree as ET
except ImportError:
from xml.etree import ElementTree as ET
from xml.etree import ElementTree as ET
EPS = 1e-4
PADDING = 10

View File

@ -16,7 +16,7 @@
import re, datetime
from xml.etree import cElementTree as ElementTree
from xml.etree import ElementTree
ElementTree.register_namespace("","http://www.w3.org/2000/svg")
ElementTree.register_namespace("xlink", "http://www.w3.org/1999/xlink")