Squish: Replacing some usages of len()

Change-Id: Icaf029043fed149bff6e15861fdcc6d640a2ecfc
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2014-05-22 16:48:35 +02:00
parent f1fb669b5b
commit e2de42a705
3 changed files with 13 additions and 11 deletions

View File

@@ -406,7 +406,7 @@ def replaceLine(fileSpec, oldLine, newLine):
if openDocumentPlaceCursor(fileSpec, oldLine) == None:
return False
editor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
for i in range(len(oldLine)):
for _ in oldLine:
type(editor, "<Backspace>")
type(editor, newLine)
return True