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

Commitfb864a9

Browse files
committed
manually remove fallback imports
1 parentef4c5ce commitfb864a9

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

‎html5lib/_trie/_base.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11

2-
try:
3-
fromcollections.abcimportMapping
4-
exceptImportError:# Python 2.7
5-
fromcollections.abcimportMapping
2+
fromcollections.abcimportMapping
63

74

85
classTrie(Mapping):

‎html5lib/_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11

22
fromtypesimportModuleType
33

4-
try:
5-
fromcollections.abcimportMapping
6-
exceptImportError:
7-
fromcollections.abcimportMapping
4+
fromcollections.abcimportMapping
85

96
fromsiximporttext_type,PY3
107

‎html5lib/treebuilders/dom.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22

3-
try:
4-
fromcollections.abcimportMutableMapping
5-
exceptImportError:# Python 2.7
6-
fromcollections.abcimportMutableMapping
3+
fromcollections.abcimportMutableMapping
74
fromxml.domimportminidom,Node
85
importweakref
96

‎html5lib/treebuilders/etree_lxml.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
importre
1616
importsys
1717

18-
try:
19-
fromcollections.abcimportMutableMapping
20-
exceptImportError:
21-
fromcollections.abcimportMutableMapping
18+
fromcollections.abcimportMutableMapping
2219

2320
from .importbase
2421
from ..constantsimportDataLossWarning

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp