Commit d6b99a03 authored by Fred Drake's avatar Fred Drake

Remove last remaning deprecation warning generated from this module.

parent e2dfd219
......@@ -18,11 +18,6 @@ import sys
import getopt
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 @@ class TALInterpreter:
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment