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

Function _encode_map_2

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

Private module function.

(minor)

Source from the content-addressed store, hash-verified

310 return map(ord, major)
311
312def _encode_map_2(minor):
313 'Private module function.'
314 map_2 = [[], [], [], []]
315 array = []
316 for byte in map(ord, minor):
317 for shift in xrange(6, -2, -2):
318 array.append((byte >> shift) & 3)
319 for byte, index in enumerate(array):
320 map_2[index].append(chr(byte))
321 return map_2
322
323def _decode_map_1(minor):
324 'Private module function.'

Callers 5

encode_stringFunction · 0.85
encode_fileFunction · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 4

mapFunction · 0.85
xrangeClass · 0.85
enumerateFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected