diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-06-23 03:18:22 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-06-23 03:18:22 +0000 |
| commit | 08aa5c585b511cfaf97ced38f2b5f7fb96492203 (patch) | |
| tree | 0f4bd1a0fffb2d60212ddcef642cf27abb3aaac5 /django/newforms/fields.py | |
| parent | 284c6ba44b2285904f4ad4ad90d0c123b888c906 (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/fields.py')
| -rw-r--r-- | django/newforms/fields.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/newforms/fields.py b/django/newforms/fields.py index b73dd181e6..471318e95f 100644 --- a/django/newforms/fields.py +++ b/django/newforms/fields.py @@ -27,9 +27,9 @@ __all__ = ( EMPTY_VALUES = (None, '') 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 try: from decimal import Decimal |
