(var, *args)
| 29 | if 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"] |
no test coverage detected