String method conversion.

This commit is contained in:
Eric S. Raymond 2001-02-09 11:51:27 +00:00
parent d8c628bd59
commit fc170b1fd5
19 changed files with 58 additions and 79 deletions

View file

@ -2,7 +2,6 @@
import regex
from regex_syntax import *
import string
opt_show_where = 0
opt_show_filename = 0
@ -59,7 +58,7 @@ def pgrep(pat, *files):
def showline(filename, lineno, line, prog):
if line[-1:] == '\n': line = line[:-1]
if opt_show_lineno:
prefix = string.rjust(`lineno`, 3) + ': '
prefix = `lineno`.rjust(, 3) + ': '
else:
prefix = ''
if opt_show_filename: