diff options
author | Guido van Rossum <guido@python.org> | 1998-06-23 14:43:06 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-06-23 14:43:06 +0000 |
commit | d9d2625dbd284f91df2beab22f385e0f0bf60cab (patch) | |
tree | 6e791ba085ce6b8ed7d249c055871fff9d3ee93d /Lib/mhlib.py | |
parent | 4d40b0a16536b7b3d61b6c86a0e8547728762c7e (diff) | |
download | cpython-git-d9d2625dbd284f91df2beab22f385e0f0bf60cab.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.py | 2 |
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() |