mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #17965 -- Definitely dropped support for Python 2.5. Thanks jonash for the initial patch and Aymeric Augustin for the review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
7
django/core/cache/__init__.py
vendored
7
django/core/cache/__init__.py
vendored
@@ -25,12 +25,7 @@ try:
|
||||
# The mod_python version is more efficient, so try importing it first.
|
||||
from mod_python.util import parse_qsl
|
||||
except ImportError:
|
||||
try:
|
||||
# Python 2.6 and greater
|
||||
from urlparse import parse_qsl
|
||||
except ImportError:
|
||||
# Python 2.5. Works on Python 2.6 but raises PendingDeprecationWarning
|
||||
from cgi import parse_qsl
|
||||
from urlparse import parse_qsl
|
||||
|
||||
__all__ = [
|
||||
'get_cache', 'cache', 'DEFAULT_CACHE_ALIAS'
|
||||
|
||||
@@ -12,7 +12,7 @@ from django.core.management.color import no_style
|
||||
from django.db import (connections, router, transaction, DEFAULT_DB_ALIAS,
|
||||
IntegrityError, DatabaseError)
|
||||
from django.db.models import get_apps
|
||||
from django.utils.itercompat import product
|
||||
from itertools import product
|
||||
|
||||
try:
|
||||
import bz2
|
||||
|
||||
Reference in New Issue
Block a user