Content-Length: 282906 | pFad | http://github.com/html5lib/html5lib-python/commit/1b393775e62b0fed8ba7e713b09e1b2713f63b1c
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9f5bf commit 1b39377Copy full SHA for 1b39377
html5lib/_ihatexml.py
@@ -104,18 +104,15 @@ def charStringToList(chars):
104
charRanges = [item.strip() for item in chars.split(" | ")]
105
rv = []
106
for item in charRanges:
107
- foundMatch = False
108
for regexp in (reChar, reCharRange):
109
match = regexp.match(item)
110
if match is not None:
111
rv.append([hexToInt(item) for item in match.groups()])
112
if len(rv[-1]) == 1:
113
rv[-1] = rv[-1] * 2
114
- foundMatch = True
115
break
116
- if not foundMatch:
+ else:
117
assert len(item) == 1
118
-
119
rv.append([ord(item)] * 2)
120
rv = normaliseCharList(rv)
121
return rv
Fetched URL: http://github.com/html5lib/html5lib-python/commit/1b393775e62b0fed8ba7e713b09e1b2713f63b1c
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments