Removed unused variables that are overwritten.

This commit is contained in:
Mads Jensen 2017-01-25 15:14:05 +01:00 committed by Tim Graham
parent 5890d6ab03
commit ebf34c3cdc
12 changed files with 4 additions and 16 deletions

View file

@ -324,7 +324,6 @@ class DateFormat(TimeFormat):
def W(self):
"ISO-8601 week number of year, weeks starting on Monday"
# Algorithm from http://www.personal.ecu.edu/mccartyr/ISOwdALG.txt
week_number = None
jan1_weekday = self.data.replace(month=1, day=1).weekday() + 1
weekday = self.data.weekday() + 1
day_of_year = self.z()