diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-03 10:08:55 -0800 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-03 10:08:55 -0800 |
| commit | c347f78cc1b2a06958f692f0622deceac534dc6b (patch) | |
| tree | c91fa9a8b5843249e2e8e6165848aae0c9fb4b17 /django/utils/dateformat.py | |
| parent | 7288e1b02b2504b1694fe14df2d81e6a354c5610 (diff) | |
Fixed all E226 violations
Diffstat (limited to 'django/utils/dateformat.py')
| -rw-r--r-- | django/utils/dateformat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 78483f2d4c..1640f9ae5a 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -303,7 +303,7 @@ class DateFormat(TimeFormat): weekday = self.data.weekday() + 1 day_of_year = self.z() if day_of_year <= (8 - jan1_weekday) and jan1_weekday > 4: - if jan1_weekday == 5 or (jan1_weekday == 6 and calendar.isleap(self.data.year-1)): + if jan1_weekday == 5 or (jan1_weekday == 6 and calendar.isleap(self.data.year - 1)): week_number = 53 else: week_number = 52 |
