From: Guido van Rossum Date: Tue, 23 Jun 1998 14:43:06 +0000 (+0000) Subject: "if match(x) >= 0:" smells of regex matching; should use "if match(x):" X-Git-Tag: v1.5.2a1~431 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9d2625dbd284f91df2beab22f385e0f0bf60cab;p=thirdparty%2FPython%2Fcpython.git "if match(x) >= 0:" smells of regex matching; should use "if match(x):" --- diff --git a/Lib/mhlib.py b/Lib/mhlib.py index 85bf2cd3f617..5de153851bd6 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()