summaryrefslogtreecommitdiffstats
path: root/Lib/cookielib.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-03 10:57:37 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-03 10:57:37 (GMT)
commitc5574e809b18d517f81e93542db76642662823cd (patch)
tree646ebdff3431d8d25202c959c4ac47b0cb4f4e08 /Lib/cookielib.py
parent4ea3eade518c6a48b0708736442deefe669fe287 (diff)
downloadcpython-c5574e809b18d517f81e93542db76642662823cd.zip
cpython-c5574e809b18d517f81e93542db76642662823cd.tar.gz
cpython-c5574e809b18d517f81e93542db76642662823cd.tar.bz2
Patch #1117454: Remove code to special-case cookies without values
in LWPCookieJar. Backported to 2.4.
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r--Lib/cookielib.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py
index 49989b4..42a2513 100644
--- a/Lib/cookielib.py
+++ b/Lib/cookielib.py
@@ -451,11 +451,7 @@ def parse_ns_headers(ns_headers):
param = param.rstrip()
if param == "": continue
if "=" not in param:
- if param.lower() in known_attrs:
- k, v = param, None
- else:
- # cookie with missing value
- k, v = param, None
+ k, v = param, None
else:
k, v = re.split(r"\s*=\s*", param, 1)
k = k.lstrip()