From c55b207c4a21a7546f8fe9ceca06fc8455921018 Mon Sep 17 00:00:00 2001 From: antoinea Date: Thu, 30 Nov 2023 22:20:33 +0100 Subject: [PATCH] fix(script): fix encode 'bytes' object has no attribute 'encode' error --- aplc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aplc.py b/aplc.py index f4859c8..821c694 100755 --- a/aplc.py +++ b/aplc.py @@ -149,7 +149,7 @@ def main(): # load SHA1 hash from file f = open(sys.argv[1], 'rb') - gest = f.read(hashlib.sha1().digest_size).encode('hex') + gest = f.read(hashlib.sha1().digest_size).hex() f.close() # check hash length