summaryrefslogtreecommitdiffstats
path: root/Lib/mhlib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-23 14:43:06 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-23 14:43:06 (GMT)
commitd9d2625dbd284f91df2beab22f385e0f0bf60cab (patch)
tree6e791ba085ce6b8ed7d249c055871fff9d3ee93d /Lib/mhlib.py
parent4d40b0a16536b7b3d61b6c86a0e8547728762c7e (diff)
downloadcpython-d9d2625dbd284f91df2beab22f385e0f0bf60cab.zip
cpython-d9d2625dbd284f91df2beab22f385e0f0bf60cab.tar.gz
cpython-d9d2625dbd284f91df2beab22f385e0f0bf60cab.tar.bz2
"if match(x) >= 0:" smells of regex matching; should use "if match(x):"
Diffstat (limited to 'Lib/mhlib.py')
-rw-r--r--Lib/mhlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py
index 85bf2cd..5de1538 100644
--- a/Lib/mhlib.py
+++ b/Lib/mhlib.py
@@ -284,7 +284,7 @@ class Folder:
match = numericprog.match
append = messages.append
for name in os.listdir(self.getfullname()):
- if match(name) >= 0:
+ if match(name):
append(name)
messages = map(string.atoi, messages)
messages.sort()