[ZPT] CVS: Zope/lib/python/Products/PageTemplates - PageTemplate.py:1.27
Florent Guillaume
fg@nuxeo.com
Sun, 8 Sep 2002 23:05:40 -0400
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv21176
Modified Files:
PageTemplate.py
Log Message:
Fixed use of 'find' from the old string module.
=== Zope/lib/python/Products/PageTemplates/PageTemplate.py 1.26 => 1.27 ===
--- Zope/lib/python/Products/PageTemplates/PageTemplate.py:1.26 Sun Sep 8 22:16:26 2002
+++ Zope/lib/python/Products/PageTemplates/PageTemplate.py Sun Sep 8 23:05:40 2002
@@ -131,7 +131,7 @@
def write(self, text):
assert type(text) is type('')
if text[:len(self._error_start)] == self._error_start:
- errend = find(text, '-->')
+ errend = text.find('-->')
if errend >= 0:
text = text[errend + 4:]
if self._text != text: