diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-03-31 10:34:11 +0000 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-03-31 10:34:11 +0000 |
| commit | a1ffb021072026ad58546609cd2c34f737fd26cc (patch) | |
| tree | 1f4e356e2a9bd8fe0fc770e520c14ff93a836f7a /django/core/cache/__init__.py | |
| parent | 23d34597615d8209de72bd819539a696ba0d1e7f (diff) | |
Fixed #18029 -- Removed mod_python as of deprecation process. Thanks Aymeric Augustin for the review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/cache/__init__.py')
| -rw-r--r-- | django/core/cache/__init__.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/django/core/cache/__init__.py b/django/core/cache/__init__.py index 9eac8ec8fe..d8095d4e51 100644 --- a/django/core/cache/__init__.py +++ b/django/core/cache/__init__.py @@ -14,6 +14,8 @@ cache class. See docs/topics/cache.txt for information on the public API. """ +from urlparse import parse_qsl + from django.conf import settings from django.core import signals from django.core.cache.backends.base import ( @@ -21,12 +23,6 @@ from django.core.cache.backends.base import ( from django.core.exceptions import ImproperlyConfigured from django.utils import importlib -try: - # The mod_python version is more efficient, so try importing it first. - from mod_python.util import parse_qsl -except ImportError: - from urlparse import parse_qsl - __all__ = [ 'get_cache', 'cache', 'DEFAULT_CACHE_ALIAS' ] |
