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

Function _check_minor

recipes/Python/572159_SPICE/recipe-572159.py:298–306  ·  view source on GitHub ↗

Private module function.

(key)

Source from the content-addressed store, hash-verified

296 assert character in key
297
298def _check_minor(key):
299 'Private module function.'
300 assert isinstance(key, str) and len(key) == 64
301 indexs = []
302 for byte in map(ord, key):
303 for shift in xrange(6, -2, -2):
304 indexs.append((byte >> shift) & 3)
305 for index in xrange(4):
306 assert indexs.count(index) == 64
307
308def _encode_map_1(major):
309 'Private module function.'

Callers 7

encode_stringFunction · 0.70
decode_stringFunction · 0.70
encode_fileFunction · 0.70
decode_fileFunction · 0.70
__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70

Calls 4

mapFunction · 0.85
xrangeClass · 0.85
appendMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected