summaryrefslogtreecommitdiff
path: root/django/utils/dateformat.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/dateformat.py')
-rw-r--r--django/utils/dateformat.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py
index 70650bf625..d40a6c8ddc 100644
--- a/django/utils/dateformat.py
+++ b/django/utils/dateformat.py
@@ -327,7 +327,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()