[Python-checkins] CVS: python/dist/src/Lib/lib-old grep.py,1.8,1.9
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 03:27:35 -0800
Update of /cvsroot/python/python/dist/src/Lib/lib-old
In directory usw-pr-cvs1:/tmp/cvs-serv15618
Modified Files:
grep.py
Log Message:
String method conversion.
Index: grep.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-old/grep.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** grep.py 2000/12/12 23:11:41 1.8
--- grep.py 2001/02/09 11:27:33 1.9
***************
*** 3,7 ****
import regex
from regex_syntax import *
- import string
opt_show_where = 0
--- 3,6 ----
***************
*** 60,64 ****
if line[-1:] == '\n': line = line[:-1]
if opt_show_lineno:
! prefix = string.rjust(`lineno`, 3) + ': '
else:
prefix = ''
--- 59,63 ----
if line[-1:] == '\n': line = line[:-1]
if opt_show_lineno:
! prefix = `lineno`.rjust(, 3) + ': '
else:
prefix = ''