From ea8ee1dfc5359da79126d78609f4673e0673bb9c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 26 Jan 1995 00:45:20 +0000 Subject: fix bogus test for regex match --- Lib/mhlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12