From 683c4a4968dcc329950e21b50b7fed5cc6009db1 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Mon, 20 Jan 2020 14:30:46 -0600 Subject: [PATCH] Client.read_ref: replace encode with hexlify Signed-off-by: Rob Browning Tested-by: Rob Browning --- lib/bup/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bup/client.py b/lib/bup/client.py index ab8d3b2..9bb464c 100644 --- a/lib/bup/client.py +++ b/lib/bup/client.py @@ -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 -- 2.39.2