(s, pos)
| 57 | } |
| 58 | |
| 59 | def _decode_uXXXX(s, pos): |
| 60 | esc = s[pos + 1:pos + 5] |
| 61 | if len(esc) == 4 and esc[1] not in 'xX': |
| 62 | try: |
| 63 | return int(esc, 16) |
| 64 | except ValueError: |
| 65 | pass |
| 66 | msg = "Invalid \\uXXXX escape" |
| 67 | raise JSONDecodeError(msg, s, pos) |
| 68 | |
| 69 | def py_scanstring(s, end, strict=True, |
| 70 | _b=BACKSLASH, _m=STRINGCHUNK.match): |
no test coverage detected