Skip to content

Commit

Permalink
Rollup merge of #73140 - tmiasko:element-tree, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Fallback to xml.etree.ElementTree

The xml.etree.cElementTree has been deprecated since Python 3.3
and removed in Python 3.9 https://bugs.python.org/issue36543.
  • Loading branch information
Manishearth authored Jul 4, 2020
2 parents f844ea1 + 291dce9 commit df8f551
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/etc/htmldocck.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@
from html.parser import HTMLParser
except ImportError:
from HTMLParser import HTMLParser
from xml.etree import cElementTree as ET
try:
from xml.etree import cElementTree as ET
except ImportError:
from xml.etree import ElementTree as ET

try:
from html.entities import name2codepoint
Expand Down

0 comments on commit df8f551

Please sign in to comment.