Skip to content

Commit eb2e951

Browse files
committed
Remove DEFAULT_TIMEOUT backwards compatibility support
Since the lowest Django version supported is 1.8, and `DEFAULT_TIMEOUT` was added in Django 1.6: django/django@89955cc
1 parent ba23b5c commit eb2e951

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

django_pylibmc/memcached.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,14 @@
1616

1717
from django.conf import settings
1818
from django.core.cache.backends.base import InvalidCacheBackendError
19-
from django.core.cache.backends.memcached import BaseMemcachedCache
19+
from django.core.cache.backends.memcached import BaseMemcachedCache, DEFAULT_TIMEOUT
2020

2121
try:
2222
import pylibmc
2323
from pylibmc import Error as MemcachedError
2424
except ImportError:
2525
raise InvalidCacheBackendError('Could not import pylibmc.')
2626

27-
try:
28-
from django.core.cache.backends.memcached import DEFAULT_TIMEOUT
29-
except ImportError:
30-
DEFAULT_TIMEOUT = None
31-
3227

3328
log = logging.getLogger('django.pylibmc')
3429

0 commit comments

Comments
 (0)