]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix bogus test for regex match
authorGuido van Rossum <guido@python.org>
Thu, 26 Jan 1995 00:45:20 +0000 (00:45 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 26 Jan 1995 00:45:20 +0000 (00:45 +0000)
Lib/mhlib.py

index dd39581fc7bfe16291da4e046cc3af3608494527..e53ed9c0176d8070387404b349dfed98849af1a1 100644 (file)
@@ -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()