hash_md5 = md5() hash_md5.update(file)
Error: object supporting the buffer API required
пробовал переделать hash_md5.update(file.encode()), выдает ошибку ‘ZipFile’ object has no attribute ‘encode’,
как поправить?
hash_md5 = md5() hash_md5.update(file)
with open(filename, "rb") as file: hash_md5.update(file)