[ZPT] CVS: Zope/lib/python/Products/PageTemplates - PageTemplate.py:1.25.6.2

Florent Guillaume fg@nuxeo.com
Sun, 8 Sep 2002 23:06:52 -0400


Update of /cvs-repository/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv21299

Modified Files:
      Tag: Zope-2_6-branch
	PageTemplate.py 
Log Message:
Fixed use of 'find' from the old string module.


=== Zope/lib/python/Products/PageTemplates/PageTemplate.py 1.25.6.1 => 1.25.6.2 ===
--- Zope/lib/python/Products/PageTemplates/PageTemplate.py:1.25.6.1	Sun Sep  8 22:21:48 2002
+++ Zope/lib/python/Products/PageTemplates/PageTemplate.py	Sun Sep  8 23:06:51 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: