"if match(x) >= 0:" smells of regex matching; should use "if match(x):"

This commit is contained in:
Guido van Rossum 1998-06-23 14:43:06 +00:00
parent 4d40b0a165
commit d9d2625dbd
1 changed files with 1 additions and 1 deletions

View File

@ -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()