Browse files

Fixed a PendingDeprecationWarning coming from django.core.cache in Py…

…thon 2.6.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 1b090bd commit ed975755d2afa24f11fe01137f49055f14d2fcd9 @alex alex committed Oct 9, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 django/core/cache/
@@ -15,7 +15,11 @@
See docs/cache.txt for information on the public API.
-from cgi import parse_qsl
+ from urlparse import parse_qsl
+except ImportError:
+ from cgi import parse_qsl
from django.conf import settings
from django.core import signals
from django.core.cache.backends.base import InvalidCacheBackendError, CacheKeyWarning

0 comments on commit ed97575

Please sign in to comment.