X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=lib%2Fbup%2Ft%2Fthashsplit.py;h=1b69cc2ad9361eef0c52edf20f3c9cf971df0d9e;hb=6178db0ca9a784fa9961d2de5b29090c3c4c3e03;hp=7ddcf3473915414ebaf5b91455df829db976cdeb;hpb=e6ee5c9bbee41e7a3b1891e252de89571d0ee717;p=bup.git diff --git a/lib/bup/t/thashsplit.py b/lib/bup/t/thashsplit.py index 7ddcf34..1b69cc2 100644 --- a/lib/bup/t/thashsplit.py +++ b/lib/bup/t/thashsplit.py @@ -6,8 +6,7 @@ from bup import hashsplit, _helpers, helpers def nr_regions(x, max_count=None): - return list(hashsplit._nonresident_page_regions(''.join(map(chr, x)), - max_count)) + return list(hashsplit._nonresident_page_regions(bytearray(x), max_count)) @wvtest def test_nonresident_page_regions():