Skip to content

Commit c490e07

Browse files
committed
ElementTree into backports package
1 parent e4509cc commit c490e07

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎language_tool/__init__.py‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,8 @@
3030
from collections import namedtuple
3131
from functools import total_ordering
3232
from weakref import WeakValueDictionary
33-
try:
34-
# Deprecated since Python 3.3
35-
from xml.etree import cElementTree as ElementTree
36-
except ImportError:
37-
from xml.etree import ElementTree
3833

39-
from .backports import subprocess
34+
from .backports import ElementTree, subprocess
4035
from .country_codes import get_country_code
4136
from .which import which
4237

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from __future__ import absolute_import
2+
3+
try:
4+
from xml.etree.cElementTree import *
5+
except ImportError:
6+
from xml.etree.ElementTree import *

0 commit comments

Comments
 (0)