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

Function bytes

recipes/Python/577518_Rsync_Algorithm/recipe-577518.py:31–35  ·  view source on GitHub ↗
(var, *args)

Source from the content-addressed store, hash-verified

29if not(hasattr(__builtins__, "bytes")) or str is bytes:
30 # Python 2.x compatibility
31 def bytes(var, *args):
32 try:
33 return ''.join(map(chr, var))
34 except TypeError:
35 return map(ord, var)
36
37__all__ = ["rollingchecksum", "weakchecksum", "patchstream", "rsyncdelta",
38 "blockchecksums"]

Callers 15

make_sudoku_keyFunction · 0.85
make_boot_strapFunction · 0.85
make_decode_gridFunction · 0.85
expand_arrayFunction · 0.85
_encodeFunction · 0.85
encryptFunction · 0.85
_decodeFunction · 0.85
decryptFunction · 0.85
handleMethod · 0.85
pyrunFunction · 0.85
rsyncdeltaFunction · 0.85
blockchecksumsFunction · 0.85

Calls 2

mapFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected