Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/w3lib/_infra.py: 90%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# https://infra.spec.whatwg.org/
3import string
5# https://infra.spec.whatwg.org/commit-snapshots/59e0d16c1e3ba0e77c6a60bfc69a0929b8ffaa5d/#code-points
6_ASCII_TAB_OR_NEWLINE = "\t\n\r"
7_ASCII_WHITESPACE = "\t\n\x0c\r "
8_C0_CONTROL = "".join(chr(n) for n in range(32))
9_C0_CONTROL_OR_SPACE = _C0_CONTROL + " "
10_ASCII_DIGIT = string.digits
11_ASCII_HEX_DIGIT = string.hexdigits
12_ASCII_ALPHA = string.ascii_letters
13_ASCII_ALPHANUMERIC = string.ascii_letters + string.digits