summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-12-17 22:06:41 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-12-17 22:06:41 +0000
commit574eafe4c08c4a63876e199e0f2657868c8d0718 (patch)
treee5c22d5015aa9b37e7a09b8d87ab69e9fde68f0b /django/forms/widgets.py
parent3bd849062c57d297f3b6f7cb12e4644ce19c52f8 (diff)
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
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index b1d2cb7cda..d59e6343e5 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -2,12 +2,7 @@
HTML Widget classes
"""
-try:
- set
-except NameError:
- from sets import Set as set # Python 2.3 fallback
-
-import copy
+import django.utils.copycompat as copy
from itertools import chain
from django.conf import settings
from django.utils.datastructures import MultiValueDict, MergeDict