diff options
Diffstat (limited to 'src/wikiget/validations.py')
| -rw-r--r-- | src/wikiget/validations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wikiget/validations.py b/src/wikiget/validations.py index bd99570..dc70df4 100644 --- a/src/wikiget/validations.py +++ b/src/wikiget/validations.py @@ -18,7 +18,7 @@ import hashlib import re -from . import BLOCKSIZE +from wikiget import BLOCKSIZE def valid_file(search_string): @@ -55,7 +55,7 @@ def verify_hash(filename): :param filename: name of the file to calculate a hash for :return: hash digest """ - hasher = hashlib.sha1() + hasher = hashlib.sha1() # noqa: S324 with open(filename, "rb") as dl: buf = dl.read(BLOCKSIZE) while len(buf) > 0: |
