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

Function _decode_map_2

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

Private module function.

(major)

Source from the content-addressed store, hash-verified

329 return map_1
330
331def _decode_map_2(major):
332 'Private module function.'
333 map_2 = [None] * 256
334 for byte, index in enumerate(map(ord, major)):
335 map_2[index] = chr(byte)
336 return map_2
337
338def _encode(string, map_1, map_2):
339 'Private module function.'

Callers 5

decode_stringFunction · 0.85
decode_fileFunction · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 2

mapFunction · 0.85
enumerateFunction · 0.50

Tested by

no test coverage detected