commit d60a09aae2e99ba89121e56debf8888a3195f640
parent d3825451c42e3d72c419cf2023e7f63ab2bc2d6f
Author: Suzanne Soy <git@suzanne.soy>
Date: Sun, 21 Feb 2021 22:04:43 +0000
Use only Nix-installed tools
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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
#