diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-02-24 08:50:59 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-02-24 08:50:59 -0500 |
commit | b118870490dd62e0706e8e610e99115c20e02bff (patch) | |
tree | 742339cda358adf037b61d37bb121ff21bafa2ca /Lib/http | |
parent | d10aa2e30d795686b25a3217be069c77cbd23944 (diff) | |
parent | 102d813b5553c8f0b1d0653bb9f9b7a3ac9a56c8 (diff) | |
download | cpython-git-b118870490dd62e0706e8e610e99115c20e02bff.tar.gz |
Issue #26302: merge from 3.5
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/cookies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index fda02b7016..dbddd6cb8c 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -174,7 +174,7 @@ _Translator.update({ ord('\\'): '\\\\', }) -_is_legal_key = re.compile('[%s]+' % _LegalChars).fullmatch +_is_legal_key = re.compile('[%s]+' % re.escape(_LegalChars)).fullmatch def _quote(str): r"""Quote a string for use in a cookie header. |