summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-10-29 15:58:59 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-10-29 15:58:59 (GMT)
commit55e614a2a8cc5b7a5af5795f87349ce3bf98fe84 (patch)
treec281fdc27b3b8620220319eee923ed008bcc2398 /Lib/http
parentbad8d4bb53577fbea939d3490713dc9d941eb27f (diff)
downloadcpython-55e614a2a8cc5b7a5af5795f87349ce3bf98fe84.zip
cpython-55e614a2a8cc5b7a5af5795f87349ce3bf98fe84.tar.gz
cpython-55e614a2a8cc5b7a5af5795f87349ce3bf98fe84.tar.bz2
Issue #11957: Explicit parameter name when calling re.split() and re.sub()
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/cookiejar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index d563350..4135ebf 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -478,7 +478,7 @@ def parse_ns_headers(ns_headers):
if "=" not in param:
k, v = param, None
else:
- k, v = re.split(r"\s*=\s*", param, 1)
+ k, v = re.split(r"\s*=\s*", param, maxsplit=1)
k = k.lstrip()
if ii != 0:
lc = k.lower()