diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-03 10:08:55 -0800 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-03 10:08:55 -0800 |
| commit | c347f78cc1b2a06958f692f0622deceac534dc6b (patch) | |
| tree | c91fa9a8b5843249e2e8e6165848aae0c9fb4b17 /django/utils/datetime_safe.py | |
| parent | 7288e1b02b2504b1694fe14df2d81e6a354c5610 (diff) | |
Fixed all E226 violations
Diffstat (limited to 'django/utils/datetime_safe.py')
| -rw-r--r-- | django/utils/datetime_safe.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/datetime_safe.py b/django/utils/datetime_safe.py index a584011db5..6cd0bf1cdd 100644 --- a/django/utils/datetime_safe.py +++ b/django/utils/datetime_safe.py @@ -83,8 +83,8 @@ def strftime(dt, fmt): s1 = time.strftime(fmt, (year,) + timetuple[1:]) sites1 = _findall(s1, str(year)) - s2 = time.strftime(fmt, (year+28,) + timetuple[1:]) - sites2 = _findall(s2, str(year+28)) + s2 = time.strftime(fmt, (year + 28,) + timetuple[1:]) + sites2 = _findall(s2, str(year + 28)) sites = [] for site in sites1: @@ -94,5 +94,5 @@ def strftime(dt, fmt): s = s1 syear = "%04d" % (dt.year,) for site in sites: - s = s[:site] + syear + s[site+4:] + s = s[:site] + syear + s[site + 4:] return s |
