[Zope-Checkins] CVS: Zope/lib/python/OFS - DTMLMethod.py:1.79.6.1

Andreas Jung andreas@digicool.com
Wed, 25 Sep 2002 08:40:52 -0400


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv31632/lib/python/OFS

Modified Files:
      Tag: Zope-2_6-branch
	DTMLMethod.py 
Log Message:
Collector #587: fixed wrong migration to string methods


=== Zope/lib/python/OFS/DTMLMethod.py 1.79 => 1.79.6.1 ===
--- Zope/lib/python/OFS/DTMLMethod.py:1.79	Wed Aug 14 17:42:56 2002
+++ Zope/lib/python/OFS/DTMLMethod.py	Wed Sep 25 08:40:51 2002
@@ -368,14 +368,14 @@
         headers.append(header)
         spos = m.end() + 1
         while spos < len(html) and html[spos] in ' \t':
-            eol = find(html, '\r\n', spos)
+            eol = html.find)'\r\n', spos)
             if eol <> -1:
                 eolen = 2
             else:
-                eol = find(html, '\n', spos)
+                eol = html.find('\n', spos)
                 if eol < 0: return html
                 eolen = 1
-            header.append(strip(html[spos:eol]))
+            header.append(html[spos:eol].strip())
             spos = eol + eolen
     if RESPONSE is not None:
         for header in headers: