mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
py26 doesn't like adding lists & tuples
This commit is contained in:
parent
ae69a74465
commit
0afb424173
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue