Skip to content

Commit 87d1b2c

Browse files
committed
change the line related to md5 and see if error related to python3.8 can be resolved
1 parent 7683253 commit 87d1b2c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

synapseclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@ def _download_from_URL(
25852585
else:
25862586
mode = "wb"
25872587
previouslyTransferred = 0
2588-
sig = hashlib.md5(usedforsecurity=False)
2588+
sig = hashlib.new("md5", usedforsecurity=False)
25892589

25902590
try:
25912591
with open(temp_destination, mode) as fd:

synapseclient/core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def md5_for_file(filename, block_size=2 * MB, callback=None):
5050
:returns: The MD5
5151
"""
5252

53-
md5 = hashlib.md5(usedforsecurity=False)
53+
md5 = hashlib.new("md5", usedforsecurity=False)
5454
with open(filename, "rb") as f:
5555
while True:
5656
if callback:

0 commit comments

Comments
 (0)