mirror of
https://github.com/django/django.git
synced 2025-09-19 00:40:11 +00:00
Fixed all E226 violations
This commit is contained in:
parent
7288e1b02b
commit
c347f78cc1
51 changed files with 150 additions and 150 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue