mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue