[Zope-Checkins] CVS: Zope/lib/python/OFS - DTMLMethod.py:1.80
Andreas Jung
andreas@digicool.com
Wed, 25 Sep 2002 08:39:50 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv31516
Modified Files:
DTMLMethod.py
Log Message:
Collector #587: fixed wrong migration to string methods
=== Zope/lib/python/OFS/DTMLMethod.py 1.79 => 1.80 ===
--- 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:39:49 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: