Searched refs:JSONDecodeError (Results 1 – 14 of 14) sorted by relevance
| /third_party/python/Lib/json/ |
| D | decoder.py | 20 class JSONDecodeError(ValueError): class 67 raise JSONDecodeError(msg, s, pos) 85 raise JSONDecodeError("Unterminated string starting at", s, begin) 99 raise JSONDecodeError(msg, s, end) 106 raise JSONDecodeError("Unterminated string starting at", 114 raise JSONDecodeError(msg, s, end) 163 raise JSONDecodeError( 174 raise JSONDecodeError("Expecting ':' delimiter", s, end) 188 raise JSONDecodeError("Expecting value", s, err.value) from None 202 raise JSONDecodeError("Expecting ',' delimiter", s, end - 1) [all …]
|
| D | __init__.py | 106 from .decoder import JSONDecoder, JSONDecodeError 335 raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)",
|
| /third_party/python/Lib/test/test_json/ |
| D | __init__.py | 14 cjson.JSONDecodeError = cjson.decoder.JSONDecodeError = json.JSONDecodeError 21 JSONDecodeError = staticmethod(pyjson.JSONDecodeError) variable in PyTest 29 JSONDecodeError = staticmethod(cjson.JSONDecodeError) variable in CTest
|
| D | test_fail.py | 89 except self.JSONDecodeError: 129 with self.assertRaises(self.JSONDecodeError) as cm: 165 with self.assertRaises(self.JSONDecodeError) as cm: 188 with self.assertRaises(self.JSONDecodeError) as cm: 207 with self.assertRaises(self.JSONDecodeError) as cm:
|
| D | test_decode.py | 69 self.assertRaisesRegex(self.JSONDecodeError, msg, self.loads, s) 74 self.assertRaisesRegex(self.JSONDecodeError, msg, self.loads, s) 84 with self.assertRaises(self.JSONDecodeError) as cm: 87 with self.assertRaises(self.JSONDecodeError) as cm:
|
| D | test_scanstring.py | 132 with self.assertRaises(self.JSONDecodeError, msg=s):
|
| /third_party/python/Modules/ |
| D | _json.c | 327 _Py_IDENTIFIER(JSONDecodeError); in raise_errmsg() 328 PyObject *JSONDecodeError = _PyObject_GetAttrId(decoder, &PyId_JSONDecodeError); in raise_errmsg() local 330 if (JSONDecodeError == NULL) { in raise_errmsg() 335 exc = PyObject_CallFunction(JSONDecodeError, "zOn", msg, s, end); in raise_errmsg() 336 Py_DECREF(JSONDecodeError); in raise_errmsg() 338 PyErr_SetObject(JSONDecodeError, exc); in raise_errmsg()
|
| /third_party/python/Doc/library/ |
| D | json.rst | 275 :exc:`JSONDecodeError` will be raised. 293 :exc:`JSONDecodeError` will be raised. 372 :exc:`JSONDecodeError` will be raised. 382 :exc:`JSONDecodeError` will be raised if the given JSON document is not 520 .. exception:: JSONDecodeError(msg, doc, pos)
|
| D | argparse.rst | 1183 :exc:`~json.JSONDecodeError` would not be well formatted and a
|
| /third_party/mesa3d/src/amd/common/ |
| D | sid_tables.py | 359 except json.JSONDecodeError as e:
|
| /third_party/python/Lib/test/ |
| D | test_embed.py | 617 except json.JSONDecodeError: 790 except json.JSONDecodeError: 1538 except json.JSONDecodeError:
|
| /third_party/python/Tools/c-analyzer/cpython/ |
| D | globals-to-fix.tsv | 1277 Modules/_json.c raise_errmsg JSONDecodeError -
|
| /third_party/python/Doc/whatsnew/ |
| D | 3.5.rst | 1373 JSON decoder now raises :exc:`~json.JSONDecodeError` instead of
|
| /third_party/python/Misc/ |
| D | NEWS | 35402 - bpo-19361: JSON decoder now raises JSONDecodeError instead of ValueError.
|