Skip to content

Commit 2796552

Browse files
committed
replaced more instances of collections import deprecation
1 parent af19281 commit 2796552

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

html5lib/_tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from six import unichr as chr
44

5-
from collections import deque
5+
from collections.abc import deque
66

77
from .constants import spaceCharacters
88
from .constants import entities

html5lib/_trie/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
try:
44
from collections.abc import Mapping
55
except ImportError: # Python 2.7
6-
from collections import Mapping
6+
from collections.abc import Mapping
77

88

99
class Trie(Mapping):

html5lib/filters/alphabeticalattributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from . import base
44

5-
from collections import OrderedDict
5+
from collections.abc import OrderedDict
66

77

88
def _attr_key(attr):

html5lib/html5parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from six import with_metaclass, viewkeys
33

44
import types
5-
from collections import OrderedDict
5+
from collections.abc import OrderedDict
66

77
from . import _inputstream
88
from . import _tokenizer

html5lib/tests/test_alphabeticalattributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import absolute_import, division, unicode_literals
22

3-
from collections import OrderedDict
3+
from collections.abc import OrderedDict
44

55
import pytest
66

html5lib/treebuilders/dom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
try:
55
from collections.abc import MutableMapping
66
except ImportError: # Python 2.7
7-
from collections import MutableMapping
7+
from collections.abc import MutableMapping
88
from xml.dom import minidom, Node
99
import weakref
1010

html5lib/treewalkers/etree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import absolute_import, division, unicode_literals
22

3-
from collections import OrderedDict
3+
from collections.abc import OrderedDict
44
import re
55

66
from six import string_types

0 commit comments

Comments
 (0)