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

Method get_source_checksum

module/lib/jinja2/bccache.py:152–154  ·  view source on GitHub ↗

Returns a checksum for the source.

(self, source)

Source from the content-addressed store, hash-verified

150 return hash.hexdigest()
151
152 def get_source_checksum(self, source):
153 """Returns a checksum for the source."""
154 return sha1(source.encode('utf-8')).hexdigest()
155
156 def get_bucket(self, environment, name, filename, source):
157 """Return a cache bucket for the given template. All arguments are

Callers 1

get_bucketMethod · 0.95

Calls 2

hexdigestMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected