From d9d2625dbd284f91df2beab22f385e0f0bf60cab Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 23 Jun 1998 14:43:06 +0000 Subject: [PATCH] "if match(x) >= 0:" smells of regex matching; should use "if match(x):" --- Lib/mhlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/mhlib.py b/Lib/mhlib.py index 85bf2cd3f61..5de153851bd 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()