MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / _hash_header

Method _hash_header

src/commoncode/hash.py:170–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168 self.update(msg)
169
170 def _hash_header(self):
171 # note: bytes interpolation is new in Python 3.5
172 git_blob_header = b"blob %d\0" % (self.total_length)
173 self.binh.update(msg=git_blob_header)
174
175 def update(self, msg=None):
176 """

Callers 1

__init__Method · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected