New == syntax

This commit is contained in:
Guido van Rossum 1992-01-01 19:35:13 +00:00
parent 4d8e859e8f
commit bdfcfccbe5
73 changed files with 419 additions and 391 deletions

View file

@ -30,7 +30,7 @@ def ggrep(syntax, pat, filename):
prefix = string.rjust(`lineno`, 3) + ': '
print prefix + line
if 0: # XXX
start, end = prog.regs()[0]
start, end = prog.regs[0]
line = line[:start]
if '\t' not in line:
prefix = ' ' * (len(prefix) + start)