Searched refs:JSONDecodeError (Results 1 – 15 of 15) sorted by relevance
/external/python/cpython3/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)",
|
/external/python/cpython3/Lib/test/test_json/ |
D | __init__.py | 12 cjson.JSONDecodeError = cjson.decoder.JSONDecodeError = json.JSONDecodeError 19 JSONDecodeError = staticmethod(pyjson.JSONDecodeError) variable in PyTest 27 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 | 68 self.assertRaisesRegex(self.JSONDecodeError, msg, self.loads, s) 73 self.assertRaisesRegex(self.JSONDecodeError, msg, self.loads, s) 83 with self.assertRaises(self.JSONDecodeError) as cm: 86 with self.assertRaises(self.JSONDecodeError) as cm:
|
D | test_scanstring.py | 132 with self.assertRaises(self.JSONDecodeError, msg=s):
|
/external/oss-fuzz/infra/cifuzz/ |
D | coverage.py | 166 except (ValueError, TypeError, json.JSONDecodeError) as err:
|
/external/python/cpython3/Modules/ |
D | _json.c | 320 static PyObject *JSONDecodeError = NULL; in raise_errmsg() local 322 if (JSONDecodeError == NULL) { in raise_errmsg() 326 JSONDecodeError = PyObject_GetAttrString(decoder, "JSONDecodeError"); in raise_errmsg() 328 if (JSONDecodeError == NULL) in raise_errmsg() 331 exc = PyObject_CallFunction(JSONDecodeError, "zOn", msg, s, end); in raise_errmsg() 333 PyErr_SetObject(JSONDecodeError, exc); in raise_errmsg()
|
/external/pigweed/pw_arduino_build/py/pw_arduino_build/ |
D | file_operations.py | 224 except (FileNotFoundError, json.JSONDecodeError):
|
/external/python/cpython3/Doc/library/ |
D | json.rst | 271 :exc:`JSONDecodeError` will be raised. 289 :exc:`JSONDecodeError` will be raised. 368 :exc:`JSONDecodeError` will be raised. 378 :exc:`JSONDecodeError` will be raised if the given JSON document is not 517 .. exception:: JSONDecodeError(msg, doc, pos)
|
/external/mesa3d/src/amd/common/ |
D | sid_tables.py | 356 except json.JSONDecodeError as e:
|
/external/python/cpython3/Lib/test/ |
D | test_embed.py | 520 except json.JSONDecodeError: 684 except json.JSONDecodeError:
|
/external/linux-kselftest/tools/testing/selftests/tc-testing/ |
D | tdc.py | 437 except json.JSONDecodeError as jde:
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.5.rst | 1373 JSON decoder now raises :exc:`~json.JSONDecodeError` instead of
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0a1.rst | 865 JSON decoder now raises JSONDecodeError instead of ValueError.
|