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

Commit7fd10d9

Browse files
committed
Merge to tip
2 parents20e2709 +8c3d9a0 commit7fd10d9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎src/html5lib/html5parser.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
# Import from the sets module for python 2.3
55
fromsetsimportSetasset
66
fromsetsimportImmutableSetasfrozenset
7+
8+
try:
9+
any
10+
except:
11+
# Implement 'any' for python 2.4 and previous
12+
defany(iterable):
13+
forelementiniterable:
14+
ifelement:
15+
returnTrue
16+
returnFalse
17+
718
importsys
819

920
importinputstream

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp