diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-03-03 10:55:57 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-03-03 10:55:57 (GMT) |
commit | 86509d1ba61ae0d3739abef79ba97eeeeab8fd1b (patch) | |
tree | 1af215e710a6f39bcae8dd2f330653f4335a798a /Lib/cookielib.py | |
parent | a8fd7e96e237b356767edb6e419bb93e0b22740a (diff) | |
download | cpython-86509d1ba61ae0d3739abef79ba97eeeeab8fd1b.zip cpython-86509d1ba61ae0d3739abef79ba97eeeeab8fd1b.tar.gz cpython-86509d1ba61ae0d3739abef79ba97eeeeab8fd1b.tar.bz2 |
Patch #1117454: Remove code to special-case cookies without values
in LWPCookieJar.
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r-- | Lib/cookielib.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py index 6a9b342..19973a8 100644 --- a/Lib/cookielib.py +++ b/Lib/cookielib.py @@ -452,11 +452,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() |