mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
clean-up of useless imports
This commit is contained in:
parent
afb9176440
commit
9c2991580f
1
django/core/cache/backends/base.py
vendored
1
django/core/cache/backends/base.py
vendored
@ -394,6 +394,7 @@ class BaseCache:
|
|||||||
"configured correctly."
|
"configured correctly."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
memcached_error_chars_re = _lazy_re_compile(r"[\x00-\x20\x7f]")
|
memcached_error_chars_re = _lazy_re_compile(r"[\x00-\x20\x7f]")
|
||||||
|
|
||||||
|
|
||||||
|
1
django/core/cache/backends/filebased.py
vendored
1
django/core/cache/backends/filebased.py
vendored
@ -14,6 +14,7 @@ from django.core.checks import Warning
|
|||||||
from django.core.files import locks
|
from django.core.files import locks
|
||||||
from django.core.files.move import file_move_safe
|
from django.core.files.move import file_move_safe
|
||||||
|
|
||||||
|
|
||||||
class FileBasedCache(BaseCache):
|
class FileBasedCache(BaseCache):
|
||||||
cache_suffix = ".djcache"
|
cache_suffix = ".djcache"
|
||||||
pickle_protocol = pickle.HIGHEST_PROTOCOL
|
pickle_protocol = pickle.HIGHEST_PROTOCOL
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import pathlib
|
import pathlib
|
||||||
import json
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.cache import DEFAULT_CACHE_ALIAS, caches
|
from django.core.cache import DEFAULT_CACHE_ALIAS, caches
|
||||||
|
Loading…
x
Reference in New Issue
Block a user