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