Skip to content

Commit 2fba388

Browse files
authored
fix: remove vertical tab from UNICODE_WHITESPACE
1 parent 5b7bebf commit 2fba388

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/mdformat/codepoints/_unicode_whitespace.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
(
88
"\t",
99
"\n",
10-
"\x0b",
1110
"\x0c",
1211
"\r",
1312
" ",
@@ -31,12 +30,11 @@
3130
)
3231

3332
if __name__ == "__main__":
34-
import string
3533
import sys
3634
import unicodedata
3735

3836
UNICODE_CHARS = frozenset(chr(c) for c in range(sys.maxunicode + 1))
3937
UNICODE_WHITESPACE = frozenset(
4038
c for c in UNICODE_CHARS if unicodedata.category(c) == "Zs"
41-
) | frozenset(string.whitespace)
39+
) | frozenset("\t\n\f\r")
4240
print(f"frozenset({tuple(sorted(UNICODE_WHITESPACE))})")

0 commit comments

Comments
 (0)