From: Guido van Rossum Date: Thu, 26 Jan 1995 00:45:20 +0000 (+0000) Subject: fix bogus test for regex match X-Git-Tag: v1.2b3~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea8ee1dfc5359da79126d78609f4673e0673bb9c;p=thirdparty%2FPython%2Fcpython.git fix bogus test for regex match --- diff --git a/Lib/mhlib.py b/Lib/mhlib.py index dd39581fc7bf..e53ed9c0176d 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()