Issue #23888: Handle fractional time in cookie expiry. Patch by ssh.

This commit is contained in:
Robert Collins 2015-08-04 10:06:29 +12:00
parent 43cbbe21a7
commit a0e5d981cd
3 changed files with 12 additions and 1 deletions

View file

@ -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")