Unverified Commit bdf92553 authored by Vincent QB's avatar Vincent QB Committed by GitHub
Browse files

correct file_obj reference. (#352)

parent 89a108c7
...@@ -183,7 +183,7 @@ def validate_file(file_obj, hash_value, hash_type="sha256"): ...@@ -183,7 +183,7 @@ def validate_file(file_obj, hash_value, hash_type="sha256"):
while True: while True:
# Read by chunk to avoid filling memory # Read by chunk to avoid filling memory
chunk = f.read(1024 ** 2) chunk = file_obj.read(1024 ** 2)
if not chunk: if not chunk:
break break
hash_func.update(chunk) hash_func.update(chunk)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment