summaryrefslogtreecommitdiff
path: root/Lib/mhlib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-23 14:43:06 +0000
committerGuido van Rossum <guido@python.org>1998-06-23 14:43:06 +0000
commitb095c269ebce41fe102a7ad0fac6ef3689368ae5 (patch)
tree9527f8e415e065e2a2c0bd598fde2a2f53d57440 /Lib/mhlib.py
parent982a14a0985e5ee36819403407cd7fcc057c2168 (diff)
downloadcpython-b095c269ebce41fe102a7ad0fac6ef3689368ae5.tar.gz
"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 85bf2cd3f6..5de153851b 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()