diff -r 5873cfb42ebe Lib/http/cookies.py --- a/Lib/http/cookies.py Tue Feb 02 17:04:56 2016 -0600 +++ b/Lib/http/cookies.py Sat Feb 06 22:59:06 2016 +0530 @@ -164,7 +164,7 @@ # _LegalChars is the list of chars which don't require "'s # _Translator hash-table for fast quoting # -_LegalChars = string.ascii_letters + string.digits + "!#$%&'*+-.^_`|~:" +_LegalChars = string.ascii_letters + string.digits + "!#$%&'*+\-.^_`|~:" _UnescapedChars = _LegalChars + ' ()/<=>?@[]{}' _Translator = {n: '\\%03o' % n