cpython: d3671e6ba106 (original) (raw)

Mercurial > cpython

changeset 94189:d3671e6ba106

merge 3.4 (#22986) [#22986]

Benjamin Peterson benjamin@python.org
date Fri, 16 Jan 2015 20:46:37 -0500
parents 031fc0231f3d(current diff)0d8380c493ad(diff)
children b5821f7493c1
files Lib/http/cookies.py Lib/test/test_http_cookies.py Misc/NEWS
diffstat 3 files changed, 7 insertions(+), 4 deletions(-)[+] [-] Lib/http/cookies.py 4 Lib/test/test_http_cookies.py 4 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -330,8 +330,8 @@ class Morsel(dict): "comment" : "Comment", "domain" : "Domain", "max-age" : "Max-Age",

--- a/Lib/test/test_http_cookies.py +++ b/Lib/test/test_http_cookies.py @@ -114,7 +114,7 @@ class CookieTests(unittest.TestCase): C['Customer']['secure'] = True C['Customer']['httponly'] = True self.assertEqual(C.output(),

def test_secure_httponly_false_if_not_present(self): C = cookies.SimpleCookie() @@ -145,7 +145,7 @@ class CookieTests(unittest.TestCase): C = cookies.SimpleCookie() C.load('eggs = scrambled ; secure ; path = bar ; foo=foo ') self.assertEqual(C.output(),

def test_quoted_meta(self): # Try cookie with quoted meta-data

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -203,6 +203,9 @@ Core and Builtins Library ------- +- Issue #23250: In the http.cookies module, capitalize "HttpOnly" and "Secure"