Permalink
Browse files

fixed SyntaxWarning on Python 2.6

  • Loading branch information...
1 parent 2e0c78a commit f2ab4c419828830db266b429b0397c00bcb3ec7e @brosner committed Aug 12, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 timezones/fields.py
View
@@ -12,9 +12,9 @@
default_tz = pytz.timezone(getattr(settings, "TIME_ZONE", "UTC"))
-assert(reduce(lambda x, y: x and (len(y) <= MAX_TIMEZONE_LENGTH),
- forms.ALL_TIMEZONE_CHOICES, True),
- "timezones.fields.TimeZoneField MAX_TIMEZONE_LENGTH is too small")
+assert reduce(lambda x, y: x and (len(y) <= MAX_TIMEZONE_LENGTH),
+ forms.ALL_TIMEZONE_CHOICES, True), \
+ "timezones.fields.TimeZoneField MAX_TIMEZONE_LENGTH is too small"
class TimeZoneField(models.CharField):
def __init__(self, *args, **kwargs):

0 comments on commit f2ab4c4

Please sign in to comment.