fix bogus test for regex match

This commit is contained in:
Guido van Rossum 1995-01-26 00:45:20 +00:00
parent 71001e4355
commit ea8ee1dfc5
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ def pickline(file, key, casefold = 1):
while 1:
line = f.readline()
if not line: break
if prog.match(line) == len(line):
if prog.match(line) >= 0:
text = line[len(key)+1:]
while 1:
line = f.readline()