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