mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
String method conversion.
This commit is contained in:
parent
d8c628bd59
commit
fc170b1fd5
19 changed files with 58 additions and 79 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue