1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

py26 doesn't like adding lists & tuples

This commit is contained in:
Peter Eckersley
2016-02-12 12:29:13 -08:00
parent ae69a74465
commit 0afb424173

View File

@@ -271,7 +271,7 @@ class Client(object): # pylint: disable=too-many-instance-attributes
# Handle two-digit years -- but any webserver that thinks
# "retry after 99" means "come back after 1999" is.. deprecated
if year >= 0 and year < 100:
when = [year + 2000] + when[1:]
when = [year + 2000] + list(when[1:])
tzone = when[-1] if when[-1] else 0
# raises ValueError/OverflowError
return datetime.datetime(*when[:7]) - datetime.timedelta(tzone)