mirror of
https://github.com/django/django.git
synced 2025-07-06 10:49:17 +00:00
[1.2.X] Fixed a PendingDeprecationWarning coming from django.core.cache in Python 2.6. Backport of [14090].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
50ce457330
commit
62dfe54d70
4
django/core/cache/__init__.py
vendored
4
django/core/cache/__init__.py
vendored
@ -15,7 +15,11 @@ cache class.
|
|||||||
See docs/cache.txt for information on the public API.
|
See docs/cache.txt for information on the public API.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
try:
|
||||||
|
from urlparse import parse_qsl
|
||||||
|
except ImportError:
|
||||||
from cgi import parse_qsl
|
from cgi import parse_qsl
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core import signals
|
from django.core import signals
|
||||||
from django.core.cache.backends.base import InvalidCacheBackendError, CacheKeyWarning
|
from django.core.cache.backends.base import InvalidCacheBackendError, CacheKeyWarning
|
||||||
|
Loading…
x
Reference in New Issue
Block a user