Fix file uploading for Python < 3.5

This commit is contained in:
Dan 2017-12-18 09:07:51 +01:00
parent 14127ae1f0
commit 99a81ad1d6

View File

@ -532,7 +532,7 @@ class Client:
chunk = f.read(512 * 1024) chunk = f.read(512 * 1024)
if not chunk: if not chunk:
md5_sum = md5_sum.digest().hex() md5_sum = "".join([hex(i)[2:].zfill(2) for i in md5_sum.digest()])
break break
md5_sum.update(chunk) md5_sum.update(chunk)