We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba23b5c commit eb2e951Copy full SHA for eb2e951
django_pylibmc/memcached.py
@@ -16,19 +16,14 @@
16
17
from django.conf import settings
18
from django.core.cache.backends.base import InvalidCacheBackendError
19
-from django.core.cache.backends.memcached import BaseMemcachedCache
+from django.core.cache.backends.memcached import BaseMemcachedCache, DEFAULT_TIMEOUT
20
21
try:
22
import pylibmc
23
from pylibmc import Error as MemcachedError
24
except ImportError:
25
raise InvalidCacheBackendError('Could not import pylibmc.')
26
27
-try:
28
- from django.core.cache.backends.memcached import DEFAULT_TIMEOUT
29
-except ImportError:
30
- DEFAULT_TIMEOUT = None
31
-
32
33
log = logging.getLogger('django.pylibmc')
34
0 commit comments