We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 950ea0e commit 9d53c9cCopy full SHA for 9d53c9c
html5lib/_trie/_base.py
@@ -1,6 +1,9 @@
1
from __future__ import absolute_import, division, unicode_literals
2
3
-from collections import Mapping
+try:
4
+ from collections.abc import MutableMapping
5
+except ImportError: # Python 2.7
6
+ from collections import MutableMapping
7
8
9
class Trie(Mapping):
html5lib/treebuilders/dom.py
@@ -1,7 +1,10 @@
-from collections import MutableMapping
from xml.dom import minidom, Node
import weakref
10
0 commit comments