]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/client.py
Client.read_ref: replace encode with hexlify
[bup.git] / lib / bup / client.py
index ab8d3b253f54e4948a9a5a4d3700c30fdb160652..9bb464c0ff60f4810ef85a640bb2e2875f6652c2 100644 (file)
@@ -315,7 +315,7 @@ class Client:
         self.check_ok()
         if r:
             assert(len(r) == 40)   # hexified sha
-            return r.decode('hex')
+            return unhexlify(r)
         else:
             return None   # nonexistent ref