summaryrefslogtreecommitdiff
path: root/django/utils/dateformat.py
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2017-01-25 15:14:05 +0100
committerTim Graham <timograham@gmail.com>2017-01-25 09:14:05 -0500
commitebf34c3cdcd2c75349c60a064427ac255958bf9b (patch)
tree7d6289bf88b5c9dc8ccb5b7c245d6cc46c005dd0 /django/utils/dateformat.py
parent5890d6ab03ebc7dac46ce7d9540b5768785caa34 (diff)
Removed unused variables that are overwritten.
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 f55b97c2ed..67968e5d73 100644
--- a/django/utils/dateformat.py
+++ b/django/utils/dateformat.py
@@ -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()