Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed SyntaxWarning on Python 2.6

  • Loading branch information...
commit f2ab4c419828830db266b429b0397c00bcb3ec7e 1 parent 2e0c78a
@brosner authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 timezones/fields.py
View
6 timezones/fields.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.