Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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 Gaynor authored October 09, 2010

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  django/core/cache/__init__.py
6  django/core/cache/__init__.py
@@ -15,7 +15,11 @@
15 15
 See docs/cache.txt for information on the public API.
16 16
 """
17 17
 
18  
-from cgi import parse_qsl
  18
+try:
  19
+    from urlparse import parse_qsl
  20
+except ImportError:
  21
+    from cgi import parse_qsl
  22
+
19 23
 from django.conf import settings
20 24
 from django.core import signals
21 25
 from django.core.cache.backends.base import InvalidCacheBackendError, CacheKeyWarning

0 notes on commit 62dfe54

Please sign in to comment.
Something went wrong with that request. Please try again.