Skip to content

Commit d9d2625

Browse files
committed
"if match(x) >= 0:" smells of regex matching; should use "if match(x):"
1 parent 4d40b0a commit d9d2625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/mhlib.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def listmessages(self):
284284
match = numericprog.match
285285
append = messages.append
286286
for name in os.listdir(self.getfullname()):
287-
if match(name) >= 0:
287+
if match(name):
288288
append(name)
289289
messages = map(string.atoi, messages)
290290
messages.sort()

0 commit comments

Comments
 (0)