Backport of the integer string length conversion limitation https://docs.python.org/3/library/stdtypes.html#int-max-str-digits
(s, INT_MAX_STR_DIGITS=4300)
| 44 | bounded_int = int |
| 45 | else: |
| 46 | def bounded_int(s, INT_MAX_STR_DIGITS=4300): |
| 47 | """Backport of the integer string length conversion limitation |
| 48 | |
| 49 | https://docs.python.org/3/library/stdtypes.html#int-max-str-digits |
| 50 | """ |
| 51 | if len(s) > INT_MAX_STR_DIGITS: |
| 52 | raise ValueError("Exceeds the limit (%s) for integer string conversion: value has %s digits" % (INT_MAX_STR_DIGITS, len(s))) |
| 53 | return int(s) |
| 54 | |
| 55 | |
| 56 | def scan_four_digit_hex(s, end, _m=re.compile(r'^[0-9a-fA-F]{4}$').match): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…