Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions libqfieldsync/utils/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ def import_file_checksum(path: str) -> Optional[str]:
if os.path.exists(file_path):
with open(file_path, "rb") as f:
file_data = f.read()
# TODO @suricactus: Python 3.9, pass `usedforsecurity=False`
# https://app.clickup.com/t/2192114/QF-6481
md5sum = hashlib.md5(file_data).hexdigest() # noqa: S324
md5sum = hashlib.md5(file_data, usedforsecurity=False).hexdigest()

return md5sum

Expand Down
Loading