]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies...
authorXtreak <tir.karthi@gmail.com>
Fri, 13 Sep 2019 12:22:12 +0000 (13:22 +0100)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Fri, 13 Sep 2019 12:22:12 +0000 (15:22 +0300)
commite7b7edf5ebaed14dc68c841a8a98260f1330ef9a
tree7a5d242896ec153f5a26a38080ba6ae69f456291
parentd3f8a11c06b7daa8df6ebf90ac711460e72b7a77
 [3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921) (GH-16092)

* [3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921)

Handle time comparison for cookies with `expires` attribute when `CookieJar.make_cookies` is called.

Co-authored-by: Demian Brecht <demianbrecht@gmail.com>
https://bugs.python.org/issue12144

Automerge-Triggered-By: @asvetlov
(cherry picked from commit bb41147)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
* Use warnings module instead of test.support.check_no_warnings

* [3.7] bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921)

Handle time comparison for cookies with `expires` attribute when `CookieJar.make_cookies` is called.

Co-authored-by: Demian Brecht <demianbrecht@gmail.com>
https://bugs.python.org/issue12144

Automerge-Triggered-By: @asvetlov.
(cherry picked from commit bb41147eab15a2958f4ad38261e5bf608f6ace1b)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
Lib/http/cookiejar.py
Lib/test/test_http_cookiejar.py
Misc/NEWS.d/next/Library/2019-06-08-23-26-58.bpo-12144.Z7mz-q.rst [new file with mode: 0644]