Kaydet (Commit) ea8ee1df authored tarafından Guido van Rossum's avatar Guido van Rossum

fix bogus test for regex match

üst 71001e43
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment