Skip to content

Commit 097a120

Browse files
committed
#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.
1 parent b8687df commit 097a120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/email/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def localtime(dt=None, isdst=-1):
401401
except AttributeError:
402402
# Compute UTC offset and compare with the value implied by tm_isdst.
403403
# If the values match, use the zone name implied by tm_isdst.
404-
delta = dt - datetime.datetime(*time.gmtime(ts)[:6])
404+
delta = dt - datetime.datetime(*time.gmtime(seconds)[:6])
405405
dst = time.daylight and localtm.tm_isdst > 0
406406
gmtoff = -(time.altzone if dst else time.timezone)
407407
if delta == datetime.timedelta(seconds=gmtoff):

0 commit comments

Comments
 (0)