diff options
author | Guido van Rossum <guido@python.org> | 1995-01-26 00:45:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-26 00:45:20 (GMT) |
commit | ea8ee1dfc5359da79126d78609f4673e0673bb9c (patch) | |
tree | 20999a188cf4eee31f03f3e2c3d3323debf41ed0 /Lib/mhlib.py | |
parent | 71001e435521fbc67342d9f36fc2615b6c4db61b (diff) | |
download | cpython-ea8ee1dfc5359da79126d78609f4673e0673bb9c.zip cpython-ea8ee1dfc5359da79126d78609f4673e0673bb9c.tar.gz cpython-ea8ee1dfc5359da79126d78609f4673e0673bb9c.tar.bz2 |
fix bogus test for regex match
Diffstat (limited to 'Lib/mhlib.py')
-rw-r--r-- | Lib/mhlib.py | 2 |
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() |