MCPcopy
hub / github.com/tornadoweb/tornado / parse_hex_int

Function parse_hex_int

tornado/http1connection.py:867–871  ·  view source on GitHub ↗

Parse a non-negative hexadecimal integer from a string.

(s: str)

Source from the content-addressed store, hash-verified

865
866
867def parse_hex_int(s: str) -> int:
868 """Parse a non-negative hexadecimal integer from a string."""
869 if HEXDIGITS.fullmatch(s) is None:
870 raise ValueError("not a hexadecimal integer: %r" % s)
871 return int(s, 16)
872
873
874def is_transfer_encoding_chunked(headers: httputil.HTTPHeaders) -> bool:

Callers 1

_read_chunked_bodyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected