Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issue #1188 (mktime call replaced by constant) #1189

Merged
merged 2 commits into from
Sep 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Gennady Andreyev
Georges Dubus
Greg Holt
Gregory Haynes
Günther Jena
Hugo Herter
Igor Pavlov
Ingmar Steen
Expand Down
3 changes: 1 addition & 2 deletions aiohttp/cookiejar.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import datetime
import re
import time
from collections import defaultdict
from collections.abc import Mapping
from http.cookies import Morsel, SimpleCookie
Expand All @@ -27,7 +26,7 @@ class CookieJar(AbstractCookieJar):

DATE_YEAR_RE = re.compile("(\d{2,4})")

MAX_TIME = time.mktime((2100, 1, 1, 1, 1, 1, 1, 1, 1,)) # so far in future
MAX_TIME = 2208985261.0 # so far in future (1/1/2100)

def __init__(self, *, unsafe=False, loop=None):
super().__init__(loop=loop)
Expand Down