]> arthur.barton.de Git - bup.git/commitdiff
Client.read_ref: replace encode with hexlify
authorRob Browning <rlb@defaultvalue.org>
Mon, 20 Jan 2020 20:30:46 +0000 (14:30 -0600)
committerRob Browning <rlb@defaultvalue.org>
Mon, 20 Jan 2020 21:17:44 +0000 (15:17 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
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