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 ...@@ -18,11 +18,6 @@ import sys
import getopt import getopt
from cgi import escape from cgi import escape
from string import rfind
try:
from strop import rfind
except ImportError:
pass
try: try:
from cStringIO import StringIO from cStringIO import StringIO
...@@ -163,9 +158,9 @@ class TALInterpreter: ...@@ -163,9 +158,9 @@ class TALInterpreter:
self.col = 0 self.col = 0
def stream_write(self, s, def stream_write(self, s,
len=len, rfind=rfind): len=len):
self._stream_write(s) self._stream_write(s)
i = rfind(s, '\n') i = s.rfind('\n')
if i < 0: if i < 0:
self.col = self.col + len(s) self.col = self.col + len(s)
else: 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