(s, pos, _m=HEXDIGITS.match)
| 58 | } |
| 59 | |
| 60 | def _decode_uXXXX(s, pos, _m=HEXDIGITS.match): |
| 61 | esc = _m(s, pos + 1) |
| 62 | if esc is not None: |
| 63 | try: |
| 64 | return int(esc.group(), 16) |
| 65 | except ValueError: |
| 66 | pass |
| 67 | msg = "Invalid \\uXXXX escape" |
| 68 | raise JSONDecodeError(msg, s, pos) |
| 69 | |
| 70 | def py_scanstring(s, end, strict=True, |
| 71 | _b=BACKSLASH, _m=STRINGCHUNK.match): |
no test coverage detected
searching dependent graphs…