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
5 changes: 4 additions & 1 deletion temporalio/worker/_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,10 @@ def load_default_build_id(*, memoize: bool = True) -> str:
# * Using the loader's get_code in rare cases can cause a compile()

got_temporal_code = False
m = hashlib.md5()
if sys.version_info < (3, 9):
m = hashlib.md5()
else:
m = hashlib.md5(usedforsecurity=False)
for mod_name in sorted(sys.modules):
# Try to read code
code = _get_module_code(mod_name)
Expand Down