Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

            def bytes2str(b):
        return b
        


src/p/y/pyelftools-0.22/elftools/construct/lib/hex.py   pyelftools(Download)
from .py3compat import byte2int, int2byte, bytes2str
 
 
# Map an integer in the inclusive range 0-255 to its string byte representation
_printable = dict((i, ".") for i in range(256))
_printable.update((i, bytes2str(int2byte(i))) for i in range(32, 128))

src/p/y/pyelftools-HEAD/elftools/construct/lib/hex.py   pyelftools(Download)
from .py3compat import byte2int, int2byte, bytes2str
 
 
# Map an integer in the inclusive range 0-255 to its string byte representation
_printable = dict((i, ".") for i in range(256))
_printable.update((i, bytes2str(int2byte(i))) for i in range(32, 128))