[ZPT] CVS: Packages/TAL - TALInterpreter.py:1.66

Fred L. Drake, Jr. fdrake@acm.org
Thu, 24 Jan 2002 10:01:27 -0500


Update of /cvs-repository/Packages/TAL
In directory cvs.zope.org:/tmp/cvs-serv32223

Modified Files:
	TALInterpreter.py 
Log Message:
Remove last remaning deprecation warning generated from this module.

=== Packages/TAL/TALInterpreter.py 1.65 => 1.66 ===
 
 from cgi import escape
-from string import rfind
-try:
-    from strop import rfind
-except ImportError:
-    pass
 
 try:
     from cStringIO import StringIO
@@ -163,9 +158,9 @@
             self.col = 0
 
     def stream_write(self, s,
-                     len=len, rfind=rfind):
+                     len=len):
         self._stream_write(s)
-        i = rfind(s, '\n')
+        i = s.rfind('\n')
         if i < 0:
             self.col = self.col + len(s)
         else: