MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / RaiserOnPickle

Class RaiserOnPickle

tests/cloudpickle_test.py:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62class RaiserOnPickle:
63 def __init__(self, exc):
64 self.exc = exc
65
66 def __reduce__(self):
67 raise self.exc
68
69
70def pickle_depickle(obj, protocol=cloudpickle.DEFAULT_PROTOCOL):

Callers 1

test_pickle_reraiseMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_pickle_reraiseMethod · 0.68