mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
fix bogus test for regex match
This commit is contained in:
parent
71001e4355
commit
ea8ee1dfc5
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue