code cleanup: python - pass multiple args to string startswith() / endswith() functions rather than calling multiple times.

This commit is contained in:
2012-09-04 20:26:42 +00:00
parent 1d4316f35f
commit dba5ef3ba8
3 changed files with 3 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ def modules(module_cache):
for path in path_list:
# force all contrib addons to be 'TESTING'
if path.endswith("addons_contrib") or path.endswith("addons_extern"):
if path.endswith(("addons_contrib", "addons_extern")):
force_support = 'TESTING'
else:
force_support = None