summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-02-24 13:50:59 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2016-02-24 13:50:59 (GMT)
commitb118870490dd62e0706e8e610e99115c20e02bff (patch)
tree742339cda358adf037b61d37bb121ff21bafa2ca /Lib/http
parentd10aa2e30d795686b25a3217be069c77cbd23944 (diff)
parent102d813b5553c8f0b1d0653bb9f9b7a3ac9a56c8 (diff)
downloadcpython-b118870490dd62e0706e8e610e99115c20e02bff.zip
cpython-b118870490dd62e0706e8e610e99115c20e02bff.tar.gz
cpython-b118870490dd62e0706e8e610e99115c20e02bff.tar.bz2
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 fda02b7..dbddd6c 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.