Remove deprecated `cElementTree`
Deprecated since version 3.3: The xml.etree.cElementTree module is deprecated.
This commit is contained in:
parent
2e98f0fee0
commit
5f9f704869
|
@ -3,11 +3,7 @@ import datetime
|
||||||
from affine import Affine
|
from affine import Affine
|
||||||
from boxes.extents import Extents
|
from boxes.extents import Extents
|
||||||
from boxes.Color import Color as bColor
|
from boxes.Color import Color as bColor
|
||||||
|
from xml.etree import ElementTree as ET
|
||||||
try:
|
|
||||||
from xml.etree import cElementTree as ET
|
|
||||||
except ImportError:
|
|
||||||
from xml.etree import ElementTree as ET
|
|
||||||
|
|
||||||
EPS = 1e-4
|
EPS = 1e-4
|
||||||
PADDING = 10
|
PADDING = 10
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
import re, datetime
|
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("","http://www.w3.org/2000/svg")
|
||||||
ElementTree.register_namespace("xlink", "http://www.w3.org/1999/xlink")
|
ElementTree.register_namespace("xlink", "http://www.w3.org/1999/xlink")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue