Removed a few gratuitous lambdas.

This commit is contained in:
Aymeric Augustin 2013-12-26 13:46:15 +01:00
parent 4e7aa573ec
commit 8f04f53dd8
7 changed files with 37 additions and 20 deletions

View file

@ -154,12 +154,10 @@ def setup(verbosity, test_labels):
if not test_labels:
module_found_in_labels = True
else:
match = lambda label: (
module_label == label or # exact match
module_label.startswith(label + '.') # ancestor match
)
module_found_in_labels = any(match(l) for l in test_labels_set)
module_found_in_labels = any(
# exact match or ancestor match
module_label == label or module_label.startswith(label + '.')
for label in test_labels_set)
if module_found_in_labels:
if verbosity >= 2: