diff options
Diffstat (limited to 'Lib/lib-old/grep.py')
-rw-r--r-- | Lib/lib-old/grep.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/lib-old/grep.py b/Lib/lib-old/grep.py index 6f74fd3..6f66081 100644 --- a/Lib/lib-old/grep.py +++ b/Lib/lib-old/grep.py @@ -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: |