Helper function to test whether object pickled with cloudpickle can be depickled with pickle
(obj, protocol=cloudpickle.DEFAULT_PROTOCOL)
| 69 | |
| 70 | |
| 71 | def pickle_depickle(obj, protocol=cloudpickle.DEFAULT_PROTOCOL): |
| 72 | """Helper function to test whether object pickled with cloudpickle can be |
| 73 | depickled with pickle |
| 74 | """ |
| 75 | return pickle.loads(cloudpickle.dumps(obj, protocol=protocol)) |
| 76 | |
| 77 | |
| 78 | def _escape(raw_filepath): |
no outgoing calls
no test coverage detected
searching dependent graphs…