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

Commite6d4630

Browse files
committed
removed try/catch blocks for python 2 import
1 parent2796552 commite6d4630

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

‎html5lib/_trie/_base.py‎

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

3-
try:
4-
fromcollections.abcimportMapping
5-
exceptImportError:# Python 2.7
6-
fromcollections.abcimportMapping
3+
fromcollections.abcimportMapping
74

85

96
classTrie(Mapping):

‎html5lib/treebuilders/dom.py‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
from __future__importabsolute_import,division,unicode_literals
22

3-
4-
try:
5-
fromcollections.abcimportMutableMapping
6-
exceptImportError:# Python 2.7
7-
fromcollections.abcimportMutableMapping
3+
fromcollections.abcimportMutableMapping
84
fromxml.domimportminidom,Node
95
importweakref
106

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp