diff options
author | William Deegan <bill@baddogconsulting.com> | 2023-05-03 20:41:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 20:41:15 -0700 |
commit | 4997bbda807ebdbcd11b1282981c3abb81dd8ee1 (patch) | |
tree | 6199e98610c76c39efe59a4dc6e91d31e5a13e96 /SCons/Util/hashes.py | |
parent | 4c835c49219361b08f03b71d1f944e2e74f23545 (diff) | |
parent | 84859d565216af998f817e05d0696f3423bb7216 (diff) | |
download | scons-git-4997bbda807ebdbcd11b1282981c3abb81dd8ee1.tar.gz |
Merge branch 'master' into bug/msys-python
Diffstat (limited to 'SCons/Util/hashes.py')
-rw-r--r-- | SCons/Util/hashes.py | 6 |
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") |