summaryrefslogtreecommitdiff
path: root/SCons/Util/hashes.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2023-05-03 20:41:15 -0700
committerGitHub <noreply@github.com>2023-05-03 20:41:15 -0700
commit4997bbda807ebdbcd11b1282981c3abb81dd8ee1 (patch)
tree6199e98610c76c39efe59a4dc6e91d31e5a13e96 /SCons/Util/hashes.py
parent4c835c49219361b08f03b71d1f944e2e74f23545 (diff)
parent84859d565216af998f817e05d0696f3423bb7216 (diff)
downloadscons-git-4997bbda807ebdbcd11b1282981c3abb81dd8ee1.tar.gz
Merge branch 'master' into bug/msys-python
Diffstat (limited to 'SCons/Util/hashes.py')
-rw-r--r--SCons/Util/hashes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/SCons/Util/hashes.py b/SCons/Util/hashes.py
index b97cd4d07..e14da012a 100644
--- a/SCons/Util/hashes.py
+++ b/SCons/Util/hashes.py
@@ -314,7 +314,7 @@ def hash_signature(s, hash_format=None):
return m.hexdigest()
-def hash_file_signature(fname, chunksize=65536, hash_format=None):
+def hash_file_signature(fname, chunksize: int=65536, hash_format=None):
"""
Generate the md5 signature of a file
@@ -358,7 +358,7 @@ def hash_collect(signatures, hash_format=None):
_MD5_WARNING_SHOWN = False
-def _show_md5_warning(function_name):
+def _show_md5_warning(function_name) -> None:
"""Shows a deprecation warning for various MD5 functions."""
global _MD5_WARNING_SHOWN
@@ -380,7 +380,7 @@ def MD5signature(s):
return hash_signature(s)
-def MD5filesignature(fname, chunksize=65536):
+def MD5filesignature(fname, chunksize: int=65536):
"""Deprecated. Use :func:`hash_file_signature` instead."""
_show_md5_warning("MD5filesignature")