MCPcopy
hub / github.com/pallets/jinja / dump_bytecode

Method dump_bytecode

src/jinja2/bccache.py:139–144  ·  view source on GitHub ↗

Subclasses have to override this method to write the bytecode from a bucket back to the cache. If it unable to do so it must not fail silently but raise an exception.

(self, bucket: Bucket)

Source from the content-addressed store, hash-verified

137 raise NotImplementedError()
138
139 def dump_bytecode(self, bucket: Bucket) -> None:
140 """Subclasses have to override this method to write the bytecode
141 from a bucket back to the cache. If it unable to do so it must not
142 fail silently but raise an exception.
143 """
144 raise NotImplementedError()
145
146 def clear(self) -> None:
147 """Clears the cache. This method is not used by Jinja but should be

Callers 1

set_bucketMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected