summaryrefslogtreecommitdiff
path: root/django/core/cache
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-18 09:46:01 +0100
committerGitHub <noreply@github.com>2023-01-18 09:46:01 +0100
commit3bbe22dafcc69c5ffa79707f5a74eb1faf466e12 (patch)
tree4bec6a7016732be33f2e1cddd80c18478cb2dee9 /django/core/cache
parentd54717118360e8679aa2bd0c5a1625f3e84712ba (diff)
Fixed #34233 -- Dropped support for Python 3.8 and 3.9.
Diffstat (limited to 'django/core/cache')
-rw-r--r--django/core/cache/backends/filebased.py2
-rw-r--r--django/core/cache/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/core/cache/backends/filebased.py b/django/core/cache/backends/filebased.py
index 215fefbcc0..29d49c0ede 100644
--- a/django/core/cache/backends/filebased.py
+++ b/django/core/cache/backends/filebased.py
@@ -6,11 +6,11 @@ import random
import tempfile
import time
import zlib
+from hashlib import md5
from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache
from django.core.files import locks
from django.core.files.move import file_move_safe
-from django.utils.crypto import md5
class FileBasedCache(BaseCache):
diff --git a/django/core/cache/utils.py b/django/core/cache/utils.py
index ff2a23aa6f..87f0f9cb09 100644
--- a/django/core/cache/utils.py
+++ b/django/core/cache/utils.py
@@ -1,4 +1,4 @@
-from django.utils.crypto import md5
+from hashlib import md5
TEMPLATE_FRAGMENT_KEY_TEMPLATE = "template.cache.%s.%s"