Skip to content

Commit

Permalink
Backwards compatibility with pre-3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
loganbibby committed Nov 25, 2024
1 parent 9b97345 commit 34bb1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cacheops/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __init__(self, s=None):
# usedforsecurity was introduced in 3.9
# this is for backwards compatibility
pyversion = sys.version_info
if pyversion.major == 3 and pyversion.minor >= 9:
if (pyversion.major == 3 and pyversion.minor >= 9) or pyversion.major > 3:
md5_kwargs["usedforsecuirty"] = False

self.md5 = hashlib.md5(**md5_kwargs)
Expand Down

0 comments on commit 34bb1b2

Please sign in to comment.