diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-08-03 22:06:29 (GMT) |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-08-03 22:06:29 (GMT) |
commit | a0e5d981cdd4f60244ae9829e38e9bc783674e9a (patch) | |
tree | 248edf1f99f6d7212bd70cc08dae36e59c7d78a9 /Lib/http | |
parent | 43cbbe21a7c0683b45334d9c979d612525cd1435 (diff) | |
download | cpython-a0e5d981cdd4f60244ae9829e38e9bc783674e9a.zip cpython-a0e5d981cdd4f60244ae9829e38e9bc783674e9a.tar.gz cpython-a0e5d981cdd4f60244ae9829e38e9bc783674e9a.tar.bz2 |
Issue #23888: Handle fractional time in cookie expiry. Patch by ssh.
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/cookiejar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py index bfc6ae9..92ead53 100644 --- a/Lib/http/cookiejar.py +++ b/Lib/http/cookiejar.py @@ -758,7 +758,7 @@ class Cookie: ): if version is not None: version = int(version) - if expires is not None: expires = int(expires) + if expires is not None: expires = int(float(expires)) if port is None and port_specified is True: raise ValueError("if port is None, port_specified must be false") |