merge
This commit is contained in:
commit
27f29d8483
|
@ -159,7 +159,7 @@ class CookieError(Exception):
|
||||||
# _LegalChars is the list of chars which don't require "'s
|
# _LegalChars is the list of chars which don't require "'s
|
||||||
# _Translator hash-table for fast quoting
|
# _Translator hash-table for fast quoting
|
||||||
#
|
#
|
||||||
_LegalChars = string.ascii_letters + string.digits + "!#$%&'*+-.^_`|~"
|
_LegalChars = string.ascii_letters + string.digits + "!#$%&'*+-.^_`|~:"
|
||||||
_Translator = {
|
_Translator = {
|
||||||
'\000' : '\\000', '\001' : '\\001', '\002' : '\\002',
|
'\000' : '\\000', '\001' : '\\001', '\002' : '\\002',
|
||||||
'\003' : '\\003', '\004' : '\\004', '\005' : '\\005',
|
'\003' : '\\003', '\004' : '\\004', '\005' : '\\005',
|
||||||
|
|
|
@ -34,6 +34,15 @@ class CookieTests(unittest.TestCase):
|
||||||
'dict': {'keebler' : 'E=mc2'},
|
'dict': {'keebler' : 'E=mc2'},
|
||||||
'repr': "<SimpleCookie: keebler='E=mc2'>",
|
'repr': "<SimpleCookie: keebler='E=mc2'>",
|
||||||
'output': 'Set-Cookie: keebler=E=mc2'},
|
'output': 'Set-Cookie: keebler=E=mc2'},
|
||||||
|
|
||||||
|
# Cookies with ':' character in their name. Though not mentioned in
|
||||||
|
# RFC, servers / browsers allow it.
|
||||||
|
|
||||||
|
{'data': 'key:term=value:term',
|
||||||
|
'dict': {'key:term' : 'value:term'},
|
||||||
|
'repr': "<SimpleCookie: key:term='value:term'>",
|
||||||
|
'output': 'Set-Cookie: key:term=value:term'},
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
for case in cases:
|
for case in cases:
|
||||||
|
|
|
@ -61,6 +61,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #2193: Allow ":" character in Cookie NAME values.
|
||||||
|
|
||||||
- Issue #14629: tokenizer.detect_encoding will specify the filename in the
|
- Issue #14629: tokenizer.detect_encoding will specify the filename in the
|
||||||
SyntaxError exception if found at readline.__self__.name.
|
SyntaxError exception if found at readline.__self__.name.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue