summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/mhlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py
index dd39581..e53ed9c 100644
--- a/Lib/mhlib.py
+++ b/Lib/mhlib.py
@@ -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()