summaryrefslogtreecommitdiff
path: root/tools/sha256sum.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-11-30 03:27:41 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-11-30 11:33:45 -0800
commitc5d8cf8eb6a6e84347b9379945f308f29a2fe5cb (patch)
tree306901036624b604e0d7d7c0e33c6d10ec39b713 /tools/sha256sum.py
parentd43a4be0d291d2cb1fb4f5a9353b509e87f849eb (diff)
Use pylint.
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__':