summaryrefslogtreecommitdiffstats
path: root/Lib/grep.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/grep.py')
-rw-r--r--Lib/grep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/grep.py b/Lib/grep.py
index bfee3f5..21ef8d8 100644
--- a/Lib/grep.py
+++ b/Lib/grep.py
@@ -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)