MCPcopy Create free account
hub / github.com/git/git / load_cache

Method load_cache

t/unit-tests/clar/generate.py:182–193  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 return modules
181
182 def load_cache(self):
183 path = os.path.join(self.output, '.clarcache')
184 cache = {}
185
186 try:
187 fp = open(path, 'rb')
188 cache = pickle.load(fp)
189 fp.close()
190 except (IOError, ValueError):
191 pass
192
193 return cache
194
195 def save_cache(self):
196 path = os.path.join(self.output, '.clarcache')

Callers 1

loadMethod · 0.95

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected