aboutsummaryrefslogtreecommitdiff
path: root/wikiget/validations.py
diff options
context:
space:
mode:
authorCody Logan <clpo13@gmail.com>2023-09-26 11:04:55 -0700
committerCody Logan <clpo13@gmail.com>2023-09-26 11:04:55 -0700
commit6bc21723d97a83f72fb1dc56a9c2db7e0e0cb36e (patch)
treebb1c8d463ed6e81ed83aa698d9d1bfd7660e8008 /wikiget/validations.py
parentf6871103d61a1aed2e537bb6ec00b47948f0610d (diff)
downloadwikiget-6bc21723d97a83f72fb1dc56a9c2db7e0e0cb36e.tar.gz
wikiget-6bc21723d97a83f72fb1dc56a9c2db7e0e0cb36e.zip
Get rid of magic numbers for verbosity checking
Diffstat (limited to 'wikiget/validations.py')
-rw-r--r--wikiget/validations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wikiget/validations.py b/wikiget/validations.py
index c0aa90d..dc70df4 100644
--- a/wikiget/validations.py
+++ b/wikiget/validations.py
@@ -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: