(s, pos, _m=HEXDIGITS.match)
| 72 | } |
| 73 | |
| 74 | def _decode_uXXXX(s, pos, _m=HEXDIGITS.match): |
| 75 | esc = _m(s, pos + 1) |
| 76 | if esc is not None: |
| 77 | try: |
| 78 | return int(esc.group(), 16) |
| 79 | except ValueError: |
| 80 | pass |
| 81 | msg = "Invalid \\uXXXX escape" |
| 82 | raise JSONDecodeError(msg, s, pos) |
| 83 | |
| 84 | def py_scanstring(s, end, strict=True, |
| 85 | _b=BACKSLASH, _m=STRINGCHUNK.match): |
no test coverage detected