Squish: Cleaned for-loops

Change-Id: Ide5313c8838aa7ad9ad74cbaed12872ce0a35413
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
Robert Loehning
2012-02-22 15:43:05 +01:00
committed by Robert Löhning
parent e48e185d2d
commit 0e0158fc3f
6 changed files with 21 additions and 33 deletions
+1 -3
View File
@@ -56,9 +56,7 @@ class QtQuickConstants:
if not isinstance(targets, (tuple,list)):
test.fatal("Wrong usage... This function handles only tuples or lists.")
return None
result = []
for target in targets:
result.append(QtQuickConstants.getStringForTarget(target))
result = map(QtQuickConstants.getStringForTarget, targets)
if None in result:
test.fatal("You've passed at least one unknown target!")
return result