(cls, path)
| 14 | |
| 15 | @classmethod |
| 16 | def load(cls, path): |
| 17 | try: |
| 18 | with open(path, 'rb') as f: |
| 19 | return pickle.load(f) |
| 20 | except (pickle.PickleError, OSError) as e: |
| 21 | raise IOError('Unable to load {} from path: {}'.format(cls.__name__, path)) from e |
no outgoing calls
no test coverage detected