summaryrefslogtreecommitdiff
path: root/Lib/lib-old/grep.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 11:51:27 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 11:51:27 +0000
commitfc170b1fd5db978f4e8d4c23c138a7b59df681ec (patch)
tree3c73ffcba8f5ece8c64a086a362b7fbe65368048 /Lib/lib-old/grep.py
parentd8c628bd59f70b5389c39fd9e6a15cb3e2d46f27 (diff)
downloadcpython-git-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.gz
String method conversion.
Diffstat (limited to 'Lib/lib-old/grep.py')
-rw-r--r--Lib/lib-old/grep.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/lib-old/grep.py b/Lib/lib-old/grep.py
index 6f74fd3181..6f66081e0c 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: