Skip to content
Myr

Merge branch 'fix-1859'

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

authored by Cory Benfield · committed by Cory Benfield · parents b32c3bc, 96a068b · Browse files · 1 file+4 added−2 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−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:requests/cookies.py+4 added-2 removed
6 unmodified lines
7"""89import copy10import time11import calendar12import collections13from .compat import cookielib, urlparse, urlunparse, Morsel1415try:
408 unmodified lines
424 except ValueError:425 raise TypeError('max-age: %s must be integer' % morsel['max-age'])426 elif morsel['expires']:427 time_template = '%a, %d-%b-%Y %H:%M:%S GMT'427 expires = int(time.mktime(428 time.strptime(morsel['expires'], time_template)) - time.timezone)428 expires = calendar.timegm(429 time.strptime(morsel['expires'], time_template)430 )431 return create_cookie(432 comment=morsel['comment'],433 comment_url=bool(morsel['comment']),434 discard=False,
53 unmodified lines