MCPcopy Create free account
hub / github.com/ActiveState/code / _load

Method _load

recipes/Python/578195_Setting_Namespaces/recipe-578195.py:36–40  ·  view source on GitHub ↗

Load an object from the specified path.

(path)

Source from the content-addressed store, hash-verified

34
35 @staticmethod
36 def _load(path):
37 "Load an object from the specified path."
38 with open(path, 'rb') as file:
39 data = file.read()
40 return pickle.loads(zlib.decompress(data))
41
42################################################################################
43

Callers 1

loadMethod · 0.45

Calls 3

openFunction · 0.50
readMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected