[Python-checkins] python/dist/src/Lib cookielib.py,1.4.2.1,1.4.2.2

loewis at users.sourceforge.net loewis at users.sourceforge.net
Thu Mar 3 11:47:40 CET 2005


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

Modified Files:
      Tag: release24-maint
	cookielib.py 
Log Message:
Patch #1117339: Add cookielib special name tests.


Index: cookielib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cookielib.py,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -u -d -r1.4.2.1 -r1.4.2.2
--- cookielib.py	5 Feb 2005 01:33:16 -0000	1.4.2.1
+++ cookielib.py	3 Mar 2005 10:47:38 -0000	1.4.2.2
@@ -448,7 +448,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:
@@ -460,7 +460,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