[Python-checkins] python/dist/src/Lib cookielib.py,1.7,1.8

loewis at users.sourceforge.net loewis at users.sourceforge.net
Thu Mar 3 11:48:14 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4491/Lib

Modified Files:
	cookielib.py 
Log Message:
Patch #1117339: Add cookielib special name tests.
Backported to 2.4.


Index: cookielib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cookielib.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cookielib.py	7 Feb 2005 14:16:09 -0000	1.7
+++ cookielib.py	3 Mar 2005 10:48:12 -0000	1.8
@@ -447,7 +447,7 @@
     for ns_header in ns_headers:
         pairs = []
         version_set = False
-        for param in re.split(r";\s*", ns_header):
+        for ii, param in enumerate(re.split(r";\s*", ns_header)):
             param = param.rstrip()
             if param == "": continue
             if "=" not in param:
@@ -459,7 +459,7 @@
             else:
                 k, v = re.split(r"\s*=\s*", param, 1)
                 k = k.lstrip()
-            if k is not None:
+            if ii != 0:
                 lc = k.lower()
                 if lc in known_attrs:
                     k = lc



More information about the Python-checkins mailing list