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

Commit1b39377

Browse files
Use for:else: where it makes sense (#539)
Co-authored-by: zzj <29055749+zjzh@users.noreply.github.com>Co-authored-by: Łukasz Langa <lukasz@langa.pl>
1 parent4f9f5bf commit1b39377

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎html5lib/_ihatexml.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,15 @@ def charStringToList(chars):
104104
charRanges= [item.strip()foriteminchars.split(" | ")]
105105
rv= []
106106
foritemincharRanges:
107-
foundMatch=False
108107
forregexpin (reChar,reCharRange):
109108
match=regexp.match(item)
110109
ifmatchisnotNone:
111110
rv.append([hexToInt(item)foriteminmatch.groups()])
112111
iflen(rv[-1])==1:
113112
rv[-1]=rv[-1]*2
114-
foundMatch=True
115113
break
116-
ifnotfoundMatch:
114+
else:
117115
assertlen(item)==1
118-
119116
rv.append([ord(item)]*2)
120117
rv=normaliseCharList(rv)
121118
returnrv

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp