diff options
Diffstat (limited to 'tools/configure.d/nodedownload.py')
-rw-r--r-- | tools/configure.d/nodedownload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/configure.d/nodedownload.py b/tools/configure.d/nodedownload.py index 515704e3de4..4f144e0e4b4 100644 --- a/tools/configure.d/nodedownload.py +++ b/tools/configure.d/nodedownload.py @@ -63,7 +63,7 @@ def checkHash(targetfile, hashAlgo): digest = hashlib.new(hashAlgo) with open(targetfile, 'rb') as f: chunk = f.read(1024) - while chunk != "": + while len(chunk) > 0: digest.update(chunk) chunk = f.read(1024) return digest.hexdigest() |