MCPcopy Create free account
hub / github.com/ActiveState/code / build_header

Method build_header

recipes/Python/578076_Markov/recipe-578076.py:223–227  ·  view source on GitHub ↗

Build header from key and primer values in current use.

(self)

Source from the content-addressed store, hash-verified

221 return cipher
222
223 def build_header(self):
224 "Build header from key and primer values in current use."
225 header = '\n'.join(map(self.bytes_to_repr, self.key.data))
226 header += '\n' + self.bytes_to_repr(self.primer.data)
227 return header
228
229 ########################################################################
230

Callers 1

encodeMethod · 0.95

Calls 3

bytes_to_reprMethod · 0.95
mapFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected