summaryrefslogtreecommitdiff
path: root/django/newforms/widgets.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-06-23 03:18:22 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-06-23 03:18:22 +0000
commit08aa5c585b511cfaf97ced38f2b5f7fb96492203 (patch)
tree0f4bd1a0fffb2d60212ddcef642cf27abb3aaac5 /django/newforms/widgets.py
parent284c6ba44b2285904f4ad4ad90d0c123b888c906 (diff)
Fixed #4607 -- Tweaked checks for features missing in Python 2.3 to not assume
things Python does not guarantee. Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms/widgets.py')
-rw-r--r--django/newforms/widgets.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/django/newforms/widgets.py b/django/newforms/widgets.py
index 6ee3177a25..b0c9a70f57 100644
--- a/django/newforms/widgets.py
+++ b/django/newforms/widgets.py
@@ -3,9 +3,10 @@ HTML Widget classes
"""
try:
- set # Only available in Python 2.4+
+ set
except NameError:
- from sets import Set as set # Python 2.3 fallback
+ from sets import Set as set # Python 2.3 fallback
+
from itertools import chain
from django.utils.datastructures import MultiValueDict