summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-26 00:45:20 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-26 00:45:20 (GMT)
commitea8ee1dfc5359da79126d78609f4673e0673bb9c (patch)
tree20999a188cf4eee31f03f3e2c3d3323debf41ed0 /Lib
parent71001e435521fbc67342d9f36fc2615b6c4db61b (diff)
downloadcpython-ea8ee1dfc5359da79126d78609f4673e0673bb9c.zip
cpython-ea8ee1dfc5359da79126d78609f4673e0673bb9c.tar.gz
cpython-ea8ee1dfc5359da79126d78609f4673e0673bb9c.tar.bz2
fix bogus test for regex match
Diffstat (limited to 'Lib')
-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()