summaryrefslogtreecommitdiff
path: root/Lib/http
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-02-24 08:50:59 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-02-24 08:50:59 -0500
commitb118870490dd62e0706e8e610e99115c20e02bff (patch)
tree742339cda358adf037b61d37bb121ff21bafa2ca /Lib/http
parentd10aa2e30d795686b25a3217be069c77cbd23944 (diff)
parent102d813b5553c8f0b1d0653bb9f9b7a3ac9a56c8 (diff)
downloadcpython-git-b118870490dd62e0706e8e610e99115c20e02bff.tar.gz
Issue #26302: merge from 3.5
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/cookies.py2
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.