MCPcopy Create free account
hub / github.com/pyload/pyload / load_bytecode

Method load_bytecode

module/lib/jinja2/bccache.py:196–202  ·  view source on GitHub ↗
(self, bucket)

Source from the content-addressed store, hash-verified

194 return path.join(self.directory, self.pattern % bucket.key)
195
196 def load_bytecode(self, bucket):
197 f = open_if_exists(self._get_cache_filename(bucket), 'rb')
198 if f is not None:
199 try:
200 bucket.load_bytecode(f)
201 finally:
202 f.close()
203
204 def dump_bytecode(self, bucket):
205 f = open(self._get_cache_filename(bucket), 'wb')

Callers

nothing calls this directly

Calls 4

_get_cache_filenameMethod · 0.95
open_if_existsFunction · 0.90
load_bytecodeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected