diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-09-14 09:55:17 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-09-14 09:55:17 +0000 |
| commit | ea3e89cb1d32f1fc6cafa656a4d6d9863f2fefc5 (patch) | |
| tree | 061f593bc1a6d5e08a36a424d0e2df0cff4dd3a8 /django | |
| parent | fa5e935af02eed26d8e607ed55e3ba3500811601 (diff) | |
Fixed a bunch of Python 2.3 issues. Two tests still fail, but this fixes the bulk of things.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/localflavor/br/forms.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/contrib/localflavor/br/forms.py b/django/contrib/localflavor/br/forms.py index 0f3e8e947e..58bf795292 100644 --- a/django/contrib/localflavor/br/forms.py +++ b/django/contrib/localflavor/br/forms.py @@ -9,6 +9,11 @@ from django.utils.encoding import smart_unicode from django.utils.translation import ugettext as _ import re +try: + set +except NameError: + from sets import Set as set # For Python 2.3 + phone_digits_re = re.compile(r'^(\d{2})[-\.]?(\d{4})[-\.]?(\d{4})$') class BRZipCodeField(RegexField): |
