summaryrefslogtreecommitdiffstats
path: root/Lib/_LWPCookieJar.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/_LWPCookieJar.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/_LWPCookieJar.py')
-rw-r--r--Lib/_LWPCookieJar.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/_LWPCookieJar.py b/Lib/_LWPCookieJar.py
index 2c8d456..25a2528 100644
--- a/Lib/_LWPCookieJar.py
+++ b/Lib/_LWPCookieJar.py
@@ -115,13 +115,6 @@ class LWPCookieJar(FileCookieJar):
for data in split_header_words([line]):
name, value = data[0]
- # name and value are an exception here, since a plain "foo"
- # (with no "=", unlike "bar=foo") means a cookie with no
- # name and value "foo". With all other cookie-attributes,
- # the situation is reversed: "foo" means an attribute named
- # "foo" with no value!
- if value is None:
- name, value = value, name
standard = {}
rest = {}
for k in boolean_attrs: