Commit d9d2625d authored by Guido van Rossum's avatar Guido van Rossum

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

parent 4d40b0a1
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment