Home
last modified time | relevance | path

Searched refs:UnpicklingError (Results 1 – 20 of 20) 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.py75 class UnpicklingError(PickleError): class
261 raise UnpicklingError(
274 raise UnpicklingError(
282 raise UnpicklingError(
1068 raise UnpicklingError("Unpickler.__init__() was not called by "
1097 raise UnpicklingError("unsupported persistent id encountered")
1119 raise UnpicklingError(
1181 raise UnpicklingError("LONG pickle has negative byte count")
1209 raise UnpicklingError("the STRING opcode argument must be quoted")
1217 raise UnpicklingError("BINSTRING pickle has negative byte count")
[all …]
/external/python/cpython3/Lib/test/
Dtest_pickle.py43 truncated_errors = (pickle.UnpicklingError, EOFError,
74 bad_stack_errors = (pickle.UnpicklingError, IndexError)
75 truncated_errors = (pickle.UnpicklingError, EOFError,
210 bad_stack_errors = (pickle.UnpicklingError,)
211 truncated_errors = (pickle.UnpicklingError,)
Dpickletester.py863 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
870 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
893 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
899 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
956 self.check_unpickling_error(pickle.UnpicklingError, p)
1762 self.assertRaises((TypeError, pickle.UnpicklingError), self.loads, b)
2761 self.assertRaises(pickle.UnpicklingError, BadUnpickler().load)
2830 self.assertRaises(pickle.UnpicklingError, self.loads, pickled)
Dtest_concurrent_futures.py882 from pickle import UnpicklingError
883 return _raise_error, (UnpicklingError, )
/external/python/cpython3/Modules/
D_pickle.c134 PyObject *UnpicklingError; member
192 Py_CLEAR(st->UnpicklingError); in _Pickle_ClearState()
514 PyErr_SetString(st->UnpicklingError, in Pdata_stack_underflow()
1186 PyErr_SetString(st->UnpicklingError, "pickle data was truncated"); in bad_readline()
1286 PyErr_SetString(st->UnpicklingError, in _Unpickler_ReadImpl()
4744 PyErr_SetString(st->UnpicklingError, "could not find MARK"); in marker()
4965 PyErr_SetString(st->UnpicklingError, in load_counted_long()
5054 PyErr_SetString(st->UnpicklingError, in load_string()
5096 PyErr_Format(st->UnpicklingError, in load_counted_binstring()
5289 PyErr_SetString(st->UnpicklingError, "odd number of items for DICT"); in load_dict()
[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/cpython2/Lib/bsddb/
Ddbshelve.py251 except (EOFError, TypeError, cPickle.UnpicklingError):
/external/python/cpython3/Doc/library/
Dpickle.rst280 .. exception:: UnpicklingError
391 Raise an :exc:`UnpicklingError` by default.
395 :exc:`UnpicklingError` should be raised.
828 raise pickle.UnpicklingError("global '%s.%s' is forbidden" %
842 pickle.UnpicklingError: global 'os.system' is forbidden
848 pickle.UnpicklingError: global 'builtins.eval' is forbidden
/external/webrtc/third_party/gtest-parallel/
Dgtest-parallel202 except (EOFError, IOError, cPickle.UnpicklingError, zlib.error):
/external/libchrome/mojo/public/tools/bindings/
Dmojom_bindings_generator.py290 except (IOError, cPickle.UnpicklingError) as e:
/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/python/cpython3/Lib/idlelib/
Drpc.py390 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
/external/python/cpython3/Misc/NEWS.d/
D3.6.0b1.rst902 unpickler. UnpicklingError is now raised instead of AttributeError and