From d60a09aae2e99ba89121e56debf8888a3195f640 Mon Sep 17 00:00:00 2001 From: Suzanne Soy Date: Sun, 21 Feb 2021 22:04:43 +0000 Subject: [PATCH] Use only Nix-installed tools --- hash-files.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hash-files.py b/hash-files.py index fa1750d..812e218 100755 --- a/hash-files.py +++ b/hash-files.py @@ -9,9 +9,9 @@ def hashFile(filename): print("hashFile("+filename+") = "+str(result), file=sys.stderr) return result -def hash1(bytes): - result = subprocess.check_output(['sha256sum', '--binary', '--zero'], input=bytes)[0:64] - print("hash1("+bytes+") = "+str(result), file=sys.stderr) +def hash1(bytes_): + result = subprocess.check_output(['sha256sum', '--binary', '--zero'], input=bytes_)[0:64] + print("hash1("+str(bytes_)+") = "+str(result), file=sys.stderr) return result #