mirror of
https://github.com/django/django.git
synced 2025-08-08 12:58:37 +00:00
Fixed #11753 - Q objects with callables no longer explode on Python 2.4. Thanks, Jeremy Dunck.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3bd849062c
commit
574eafe4c0
24 changed files with 48 additions and 50 deletions
|
@ -7,16 +7,11 @@ circular import difficulties.
|
|||
"""
|
||||
|
||||
import weakref
|
||||
from copy import deepcopy
|
||||
from django.utils.copycompat import deepcopy
|
||||
|
||||
from django.utils import tree
|
||||
from django.utils.datastructures import SortedDict
|
||||
|
||||
try:
|
||||
sorted
|
||||
except NameError:
|
||||
from django.utils.itercompat import sorted # For Python 2.3.
|
||||
|
||||
|
||||
class CyclicDependency(Exception):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue