Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2754f6

Browse files
committed
MNT: do not try to import xml.etree.cElementTree
As of py33 the fastest available version is imported and in py39 the alias of `xml.etree.cElementTree` for `xml.etree.ElementTree` will be removed.
1 parent d481a16 commit a2754f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/misc/svg_filter_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
plt.savefig(f, format="svg")
5858

5959

60-
import xml.etree.cElementTree as ET
60+
import xml.etree.ElementTree as ET
6161

6262
# filter definition for a gaussian blur
6363
filter_def = """

examples/misc/svg_filter_pie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
f = BytesIO()
4747
plt.savefig(f, format="svg")
4848

49-
import xml.etree.cElementTree as ET
49+
import xml.etree.ElementTree as ET
5050

5151

5252
# filter definition for shadow using a gaussian blur

0 commit comments

Comments
 (0)