Skip to content
Myr

Update cookies.py

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by latyas(懒) · committed by Ian Cordasco · parent 059e105 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:requests/cookies.py+4 added-4 removed
414 unmodified lines
415416 expires = None417 if morsel['max-age']:418 try:419 expires = time.time() + float(morsel['max-age'])419 expires = int(time.time() + int(morsel['max-age']))420 except ValueError:421 pass421 raise TypeError('max-age: %s must be integer' % morsel['max-age'])422 elif morsel['expires']:423 time_template = '%a, %d-%b-%Y %H:%M:%S GMT'424 expires = time.mktime(425 time.strptime(morsel['expires'], time_template)) - time.timezone424 expires = int(time.mktime(425 time.strptime(morsel['expires'], time_template)) - time.timezone)426 return create_cookie(427 comment=morsel['comment'],428 comment_url=bool(morsel['comment']),429 discard=False,
53 unmodified lines