"if match(x) >= 0:" smells of regex matching; should use "if match(x):"
This commit is contained in:
parent
4d40b0a165
commit
d9d2625dbd
|
@ -284,7 +284,7 @@ class Folder:
|
||||||
match = numericprog.match
|
match = numericprog.match
|
||||||
append = messages.append
|
append = messages.append
|
||||||
for name in os.listdir(self.getfullname()):
|
for name in os.listdir(self.getfullname()):
|
||||||
if match(name) >= 0:
|
if match(name):
|
||||||
append(name)
|
append(name)
|
||||||
messages = map(string.atoi, messages)
|
messages = map(string.atoi, messages)
|
||||||
messages.sort()
|
messages.sort()
|
||||||
|
|
Loading…
Reference in New Issue