Kaydet (Commit) ed975755 authored tarafından Alex Gaynor's avatar Alex Gaynor

Fixed a PendingDeprecationWarning coming from django.core.cache in Python 2.6.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 1b090bd0
...@@ -15,7 +15,11 @@ cache class. ...@@ -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.
""" """
from cgi import parse_qsl try:
from urlparse import parse_qsl
except ImportError:
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment