Skip to content

Commit 34bb1b2

Browse files
committed
Backwards compatibility with pre-3.9
1 parent 9b97345 commit 34bb1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cacheops/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def __init__(self, s=None):
150150
# usedforsecurity was introduced in 3.9
151151
# this is for backwards compatibility
152152
pyversion = sys.version_info
153-
if pyversion.major == 3 and pyversion.minor >= 9:
153+
if (pyversion.major == 3 and pyversion.minor >= 9) or pyversion.major > 3:
154154
md5_kwargs["usedforsecuirty"] = False
155155

156156
self.md5 = hashlib.md5(**md5_kwargs)

0 commit comments

Comments
 (0)