Home
last modified time | relevance | path

Searched refs:UnpicklingError (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_pickle.py28 bad_mark_errors = (IndexError, pickle.UnpicklingError,
30 truncated_errors = (pickle.UnpicklingError, EOFError,
39 bad_mark_errors = (IndexError, pickle.UnpicklingError,
41 truncated_errors = (pickle.UnpicklingError, EOFError,
Dtest_cpickle.py54 bad_stack_errors = (cPickle.UnpicklingError,)
56 truncated_errors = (cPickle.UnpicklingError, EOFError,
70 bad_stack_errors = (cPickle.UnpicklingError,)
72 truncated_errors = (cPickle.UnpicklingError, EOFError,
/external/python/cpython3/Lib/
Dpickle.py84 class UnpicklingError(PickleError): class
279 raise UnpicklingError(
294 raise UnpicklingError(
307 raise UnpicklingError(
315 raise UnpicklingError(
1194 raise UnpicklingError("Unpickler.__init__() was not called by "
1224 raise UnpicklingError("unsupported persistent id encountered")
1246 raise UnpicklingError(
1308 raise UnpicklingError("LONG pickle has negative byte count")
1336 raise UnpicklingError("the STRING opcode argument must be quoted")
[all …]
/external/python/cpython3/Lib/test/
Dtest_pickle.py45 truncated_errors = (pickle.UnpicklingError, EOFError,
76 bad_stack_errors = (pickle.UnpicklingError, IndexError)
77 truncated_errors = (pickle.UnpicklingError, EOFError,
219 bad_stack_errors = (pickle.UnpicklingError,)
220 truncated_errors = (pickle.UnpicklingError,)
Dpickletester.py1025 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
1032 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
1040 self.check_unpickling_error(pickle.UnpicklingError, b'g0\np0')
1041 self.check_unpickling_error(pickle.UnpicklingError, b'jens:')
1042 self.check_unpickling_error(pickle.UnpicklingError, b'hens:')
1061 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
1067 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
1073 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
1130 self.check_unpickling_error(pickle.UnpicklingError, p)
1181 error = (pickle.UnpicklingError, TypeError)
[all …]
Dtest_concurrent_futures.py1076 from pickle import UnpicklingError
1077 return _raise_error_ignore_stderr, (UnpicklingError, )
/external/python/cpython3/Modules/
D_pickle.c144 PyObject *UnpicklingError; member
202 Py_CLEAR(st->UnpicklingError); in _Pickle_ClearState()
524 PyErr_SetString(st->UnpicklingError, in Pdata_stack_underflow()
1225 PyErr_SetString(st->UnpicklingError, "pickle data was truncated"); in bad_readline()
1326 PyErr_SetString(st->UnpicklingError, in _Unpickler_ReadImpl()
5140 PyErr_SetString(st->UnpicklingError, "could not find MARK"); in marker()
5361 PyErr_SetString(st->UnpicklingError, in load_counted_long()
5450 PyErr_SetString(st->UnpicklingError, in load_string()
5492 PyErr_Format(st->UnpicklingError, in load_counted_binstring()
5584 PyErr_SetString(st->UnpicklingError, in load_next_buffer()
[all …]
/external/python/cpython2/Modules/
DcPickle.c110 static PyObject *UnpicklingError; variable
188 PyErr_SetString(UnpicklingError, "unpickling stack underflow"); in stackUnderflow()
248 PyErr_SetString(UnpicklingError, "bad pickle data"); \
3356 PyErr_SetString(UnpicklingError, "Global and instance " in find_class()
3385 PyErr_SetString(UnpicklingError, "could not find MARK"); in marker()
3403 PyErr_SetString(UnpicklingError, "pickle data was truncated"); in bad_readline()
3585 PyErr_SetString(UnpicklingError, "LONG pickle has negative " in load_counted_long()
3722 PyErr_SetString(UnpicklingError, in load_binstring()
3794 PyErr_SetString(UnpicklingError, in load_binunicode()
3993 PyErr_SetString(UnpicklingError, "NEWOBJ expected an arg " in load_newobj()
[all …]
/external/python/cpython3/Doc/includes/
Ddbpickle.py46 raise pickle.UnpicklingError("unsupported persistent object")
/external/python/cpython3/Misc/NEWS.d/
D3.9.0b5.rst122 UnpicklingError instead of crashing.
D3.9.0a2.rst444 Raise pickle.UnpicklingError when loading an item from memo for invalid
D3.6.0b1.rst902 unpickler. UnpicklingError is now raised instead of AttributeError and
/external/python/cpython2/Lib/bsddb/
Ddbshelve.py251 except (EOFError, TypeError, cPickle.UnpicklingError):
/external/python/cpython3/Doc/library/
Dpickle.rst286 .. exception:: UnpicklingError
441 Raise an :exc:`UnpicklingError` by default.
445 :exc:`UnpicklingError` should be raised.
1094 raise pickle.UnpicklingError("global '%s.%s' is forbidden" %
1108 pickle.UnpicklingError: global 'os.system' is forbidden
1114 pickle.UnpicklingError: global 'builtins.eval' is forbidden
/external/python/cpython2/Lib/idlelib/
Drpc.py378 except pickle.UnpicklingError:
DNEWS.txt840 - Fix typo in rpc.py, s/b "pickle.PicklingError" not "pickle.UnpicklingError".
/external/libchrome/mojo/public/tools/bindings/
Dmojom_bindings_generator.py290 except (IOError, cPickle.UnpicklingError) as e:
/external/python/cpython3/Lib/idlelib/
Drpc.py389 except pickle.UnpicklingError:
DNEWS2x.txt337 - Fix typo in rpc.py, s/b "pickle.PicklingError" not "pickle.UnpicklingError".
/external/python/cpython2/Doc/library/
Dpickle.rst233 .. exception:: UnpicklingError
504 :exc:`UnpicklingError` will be raised in the unpickling environment. Note
630 raise pickle.UnpicklingError, 'Invalid persistent id'
684 unpickle instances will raise an :exc:`UnpicklingError`. If it is a function,
/external/python/cpython2/Lib/
Dpickle.py69 class UnpicklingError(PickleError): class