MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / hexdump

Function hexdump

pager_lib/pyasn1/debug.py:126–130  ·  view source on GitHub ↗
(octets)

Source from the content-addressed store, hash-verified

124
125
126def hexdump(octets):
127 return ' '.join(
128 ['%s%.2X' % (n % 16 == 0 and ('\n%.5d: ' % n) or '', x)
129 for n, x in zip(range(len(octets)), octets)]
130 )
131
132
133class Scope(object):

Callers

nothing calls this directly

Calls 1

rangeFunction · 0.85

Tested by

no test coverage detected