Remove unused import fallback
xml.etree.ElementTree should be available in Python >= 3.8 . Change-Id: Ic46e9059ba43cb77c0285472007055026c36a0a8
This commit is contained in:
parent
8312bb23d4
commit
36a8c21310
@ -1,17 +1,13 @@
|
|||||||
import base64
|
import base64
|
||||||
import datetime
|
import datetime
|
||||||
import decimal
|
import decimal
|
||||||
|
import xml.etree.ElementTree as et
|
||||||
|
|
||||||
from wsme.rest.xml import fromxml, toxml
|
from wsme.rest.xml import fromxml, toxml
|
||||||
import wsme.tests.protocol
|
import wsme.tests.protocol
|
||||||
from wsme.types import isarray, isdict, isusertype, register_type
|
from wsme.types import isarray, isdict, isusertype, register_type
|
||||||
from wsme.utils import parse_isodatetime, parse_isodate, parse_isotime
|
from wsme.utils import parse_isodatetime, parse_isodate, parse_isotime
|
||||||
|
|
||||||
try:
|
|
||||||
import xml.etree.ElementTree as et
|
|
||||||
except ImportError:
|
|
||||||
import cElementTree as et # noqa
|
|
||||||
|
|
||||||
|
|
||||||
def dumpxml(key, obj, datatype=None):
|
def dumpxml(key, obj, datatype=None):
|
||||||
el = et.Element(key)
|
el = et.Element(key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user