MCPcopy Index your code
hub / github.com/python/cpython / hexstr

Function hexstr

Lib/test/test_hashlib.py:70–76  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

68
69
70def hexstr(s):
71 assert isinstance(s, bytes), repr(s)
72 h = "0123456789abcdef"
73 r = ''
74 for i in s:
75 r += h[(i >> 4) & 0xF] + h[i & 0xF]
76 return r
77
78
79URL = "http://www.pythontest.net/hashlib/{}.txt"

Callers 1

test_hexdigestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…