summaryrefslogtreecommitdiff
path: root/tools/sha256sum.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sha256sum.py')
-rw-r--r--tools/sha256sum.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/sha256sum.py b/tools/sha256sum.py
index d3273d5ba..139368e89 100644
--- a/tools/sha256sum.py
+++ b/tools/sha256sum.py
@@ -55,15 +55,15 @@ def main():
hasher = sha256()
for data in args.input:
hasher.update(data)
- hash = hasher.hexdigest()
+ h = hasher.hexdigest()
# Format and write to specified out file (or the default, stdout).
- args.outfile.write(args.format % hash)
+ args.outfile.write(args.format % h)
def read_file(filename):
- with open(filename, "rb") as file:
- return file.read()
+ with open(filename, "rb") as f:
+ return f.read()
if __name__ == '__main__':