diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2021-12-16 00:58:44 +0200 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2021-12-16 00:58:44 +0200 |
commit | 83b4ea59fc8793ccbfb6b40ffff111de14ebd4d3 (patch) | |
tree | eab6471412d7094cb265f4a292e910f187560a26 /scripts/md5check.py | |
parent | aa309c2eef0f3d033ddf8a5096ea1143221a4c71 (diff) | |
parent | 0b95b9d008a0878b5d57262e529cef61fb29ea24 (diff) |
Merge branch 'SL-15742' into DRTVWR-527-maint
Diffstat (limited to 'scripts/md5check.py')
-rwxr-xr-x | scripts/md5check.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/md5check.py b/scripts/md5check.py index 1a54a2844c..20ebfa6656 100755 --- a/scripts/md5check.py +++ b/scripts/md5check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """\ @file md5check.py @brief Replacement for message template compatibility verifier. @@ -29,14 +29,14 @@ import sys import hashlib if len(sys.argv) != 3: - print """Usage: %s --create|<hash-digest> <file> + print("""Usage: %s --create|<hash-digest> <file> Creates an md5sum hash digest of the specified file content and compares it with the given hash digest. If --create is used instead of a hash digest, it will simply print out the hash digest of specified file content. -""" % sys.argv[0] +""" % sys.argv[0]) sys.exit(1) if sys.argv[2] == '-': @@ -48,9 +48,9 @@ else: hexdigest = hashlib.md5(fh.read()).hexdigest() if sys.argv[1] == '--create': - print hexdigest + print(hexdigest) elif hexdigest == sys.argv[1]: - print "md5sum check passed:", filename + print("md5sum check passed:", filename) else: - print "md5sum check FAILED:", filename + print("md5sum check FAILED:", filename) sys.exit(1) |