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 92a5c08 commit c0f2fcfCopy full SHA for c0f2fcf
Lib/test/test_urlparse.py
@@ -1079,7 +1079,8 @@ def test_urlsplit_normalization(self):
1079
hex_chars = {'{:04X}'.format(ord(c)) for c in illegal_chars}
1080
denorm_chars = [
1081
c for c in map(chr, range(128, sys.maxunicode))
1082
- if (hex_chars & set(unicodedata.decomposition(c).split()))
+ if unicodedata.decomposition(c)
1083
+ and (hex_chars & set(unicodedata.decomposition(c).split()))
1084
and c not in illegal_chars
1085
]
1086
# Sanity check that we found at least one such character
0 commit comments