diff options
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/dateformat.py | 1 | ||||
| -rw-r--r-- | django/utils/ipv6.py | 1 |
2 files changed, 0 insertions, 2 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() diff --git a/django/utils/ipv6.py b/django/utils/ipv6.py index a1e63be727..93a1bfd1b2 100644 --- a/django/utils/ipv6.py +++ b/django/utils/ipv6.py @@ -227,7 +227,6 @@ def _explode_shorthand_ip_string(ip_str): # We've already got a longhand ip_str. return ip_str - new_ip = [] hextet = ip_str.split('::') # If there is a ::, we need to expand it with zeroes |
