From ea3e89cb1d32f1fc6cafa656a4d6d9863f2fefc5 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 14 Sep 2007 09:55:17 +0000 Subject: 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 --- django/contrib/localflavor/br/forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'django') 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): -- cgit v1.3