Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.2.X] Fixed a PendingDeprecationWarning coming from django.core.cac…

…he 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
  • Loading branch information...
commit 62dfe54d70892a50e867712eff465bdc30762906 1 parent 50ce457
@alex alex authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 django/core/cache/__init__.py
View
6 django/core/cache/__init__.py
@@ -15,7 +15,11 @@
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.core import signals
from django.core.cache.backends.base import InvalidCacheBackendError, CacheKeyWarning
Please sign in to comment.
Something went wrong with that request. Please try again.