Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2796552

Browse files
committed
replaced more instances of collections import deprecation
1 parentaf19281 commit2796552

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
fromsiximportunichraschr
44

5-
fromcollectionsimportdeque
5+
fromcollections.abcimportdeque
66

77
from .constantsimportspaceCharacters
88
from .constantsimportentities

‎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
fromcollections.abcimportMapping
55
exceptImportError:# Python 2.7
6-
fromcollectionsimportMapping
6+
fromcollections.abcimportMapping
77

88

99
classTrie(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 .importbase
44

5-
fromcollectionsimportOrderedDict
5+
fromcollections.abcimportOrderedDict
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
fromsiximportwith_metaclass,viewkeys
33

44
importtypes
5-
fromcollectionsimportOrderedDict
5+
fromcollections.abcimportOrderedDict
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__importabsolute_import,division,unicode_literals
22

3-
fromcollectionsimportOrderedDict
3+
fromcollections.abcimportOrderedDict
44

55
importpytest
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
fromcollections.abcimportMutableMapping
66
exceptImportError:# Python 2.7
7-
fromcollectionsimportMutableMapping
7+
fromcollections.abcimportMutableMapping
88
fromxml.domimportminidom,Node
99
importweakref
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__importabsolute_import,division,unicode_literals
22

3-
fromcollectionsimportOrderedDict
3+
fromcollections.abcimportOrderedDict
44
importre
55

66
fromsiximportstring_types

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp