summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/contrib/localflavor/br/forms.py5
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):