We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2207b3f + c0f2fcf commit 7c3a0f6Copy full SHA for 7c3a0f6
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