summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-08-23 01:52:31 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-08-23 01:52:31 (GMT)
commit097a1208bc932f72491c77e24669ac3c0ed14bf6 (patch)
tree87f7252838221688bbed1e1a12f17eb785abb75b
parentb8687df6532b809f41d77dfc617363d3c093ec88 (diff)
downloadcpython-097a1208bc932f72491c77e24669ac3c0ed14bf6.zip
cpython-097a1208bc932f72491c77e24669ac3c0ed14bf6.tar.gz
cpython-097a1208bc932f72491c77e24669ac3c0ed14bf6.tar.bz2
#665194: fix variable name in exception code path.
It was correct in the original patch and I foobared it when I restructured part of the code.
-rw-r--r--Lib/email/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/utils.py b/Lib/email/utils.py
index c6204da..f32cdd9 100644
--- a/Lib/email/utils.py
+++ b/Lib/email/utils.py
@@ -401,7 +401,7 @@ def localtime(dt=None, isdst=-1):
except AttributeError:
# Compute UTC offset and compare with the value implied by tm_isdst.
# If the values match, use the zone name implied by tm_isdst.
- delta = dt - datetime.datetime(*time.gmtime(ts)[:6])
+ delta = dt - datetime.datetime(*time.gmtime(seconds)[:6])
dst = time.daylight and localtm.tm_isdst > 0
gmtoff = -(time.altzone if dst else time.timezone)
if delta == datetime.timedelta(seconds=gmtoff):