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:15:36 -0500
commitc94cb4f86541d8f76ee27652e214fedd0c0920fe (patch)
tree93603bde283d50a96c0f3a87c92399ca8da55b8b /django/utils/dateformat.py
parenta69fc396e47cea763401eaaab92e11a5343e7d3e (diff)
[1.11.x] Removed unused variables that are overwritten.
Backport of ebf34c3cdcd2c75349c60a064427ac255958bf9b from master
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()