[Python-checkins] cpython: #665194: fix variable name in exception code path.
r.david.murray
python-checkins at python.org
Thu Aug 23 03:52:56 CEST 2012
http://hg.python.org/cpython/rev/a2d83fba8fd8
changeset: 78710:a2d83fba8fd8
user: R David Murray <rdmurray at bitdance.com>
date: Wed Aug 22 21:52:31 2012 -0400
summary:
#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.
files:
Lib/email/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/email/utils.py b/Lib/email/utils.py
--- a/Lib/email/utils.py
+++ b/Lib/email/utils.py
@@ -401,7 +401,7 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list