def hexdump(octets):
    return ' '.join(
            [ '%s%.2X' % (n%16 == 0 and ('\n%.5d: ' % n) or '', x) 
              for n,x in zip(range(len(octets)), octs2ints(octets)) ]
        )
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/pyasn1/debug.py/hexdump/original