summaryrefslogtreecommitdiff
path: root/Lib/http/cookiejar.py
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-08-04 10:07:21 +1200
committerRobert Collins <rbtcollins@hp.com>2015-08-04 10:07:21 +1200
commit55b88700d29d00c991307038c6b7ec52b26680ae (patch)
treeea4b3458e47e61d8a79e06dd805b7b5d43a3fa62 /Lib/http/cookiejar.py
parent62f27b5b98725d7b576d9dda784fcbe15bd17063 (diff)
parentf3d9c315b68841d209b399c1c513cd9030d538fe (diff)
downloadcpython-git-55b88700d29d00c991307038c6b7ec52b26680ae.tar.gz
Issue #23888: Handle fractional time in cookie expiry. Patch by ssh.
Diffstat (limited to 'Lib/http/cookiejar.py')
-rw-r--r--Lib/http/cookiejar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index d54f58a27a..b1ba72ec55 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")