diff options
author | Bradley Sepos <[email protected]> | 2019-02-26 16:25:58 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2019-02-26 16:30:12 -0500 |
commit | 63144e78716b185fdb0fd0575dfce385a3719302 (patch) | |
tree | 1a17e74067801f3148e77780e30977e4bf4eda2b /make/df-verify.py | |
parent | 7f06081aeb2afb969f2195fc4509d348c21e6290 (diff) |
make: More Python 3 compatibility fixes.
Diffstat (limited to 'make/df-verify.py')
-rw-r--r-- | make/df-verify.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/make/df-verify.py b/make/df-verify.py index eb29f4bc9..f370d930a 100644 --- a/make/df-verify.py +++ b/make/df-verify.py @@ -1,8 +1,6 @@ ############################################################################### ## -## Coded for minimum version of Python 2.7 . -## -## Python3 is incompatible. +## This script is coded for Python 2.7 through Python 3.x ## ## Authors: konablend ## @@ -50,7 +48,7 @@ class Tool(hb_distfile.Tool): def _scan(self, filename): self.verbosef('scanning %s\n' % filename) hasher = hashlib.sha256() - with open(filename, 'r') as o: + with open(filename, 'rb') as o: data_total = 0 while True: data = o.read(65536) |