forked from qt-creator/qt-creator
Squish: Move imports of "os", "re" and "sys" into shared class
Change-Id: I349cb255b8fa6f96e32d5dacb3c9b58ddeb76897 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -23,8 +23,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
import re;
|
||||
|
||||
def getBuildIssues():
|
||||
ensureChecked(":Qt Creator_Issues_Core::Internal::OutputPaneToggleButton")
|
||||
model = waitForObject(":Qt Creator.Issues_QListView").model()
|
||||
|
@@ -23,8 +23,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
import re;
|
||||
|
||||
# places the cursor inside the given editor into the given line
|
||||
# (leading and trailing whitespaces are ignored!)
|
||||
# and goes to the end of the line
|
||||
|
@@ -23,9 +23,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
import __builtin__
|
||||
import re
|
||||
|
||||
def openQbsProject(projectPath):
|
||||
cleanUpUserFiles(projectPath)
|
||||
invokeMenuItem("File", "Open File or Project...")
|
||||
|
@@ -23,8 +23,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
import re;
|
||||
|
||||
# this function switches the MainWindow of creator to the specified view
|
||||
def switchViewTo(view):
|
||||
# make sure that no tooltip is shown, so move the mouse away and wait until all disappear
|
||||
|
@@ -24,6 +24,7 @@
|
||||
############################################################################
|
||||
|
||||
import platform;
|
||||
import re;
|
||||
import shutil;
|
||||
import os;
|
||||
import glob;
|
||||
|
@@ -457,7 +457,6 @@ def iterateQtVersions(keepOptionsOpen=False, alreadyOnOptionsDialog=False,
|
||||
else:
|
||||
currResult = additionalFunction(target, version, *argsForAdditionalFunc)
|
||||
except:
|
||||
import sys
|
||||
t,v,_ = sys.exc_info()
|
||||
currResult = None
|
||||
test.fatal("Function to additionally execute on Options Dialog could not be found or "
|
||||
@@ -520,7 +519,6 @@ def iterateKits(keepOptionsOpen=False, alreadyOnOptionsDialog=False,
|
||||
else:
|
||||
currResult = additionalFunction(item, kitName, *argsForAdditionalFunc)
|
||||
except:
|
||||
import sys
|
||||
t,v,_ = sys.exc_info()
|
||||
currResult = None
|
||||
test.fatal("Function to additionally execute on Options Dialog could not be "
|
||||
|
@@ -24,7 +24,6 @@
|
||||
############################################################################
|
||||
|
||||
import urllib2
|
||||
import re
|
||||
|
||||
############ functions not related to issues tracked inside jira ############
|
||||
|
||||
|
@@ -24,7 +24,6 @@
|
||||
############################################################################
|
||||
|
||||
source("../../shared/qtcreator.py")
|
||||
import re
|
||||
|
||||
# test search in help mode and advanced search
|
||||
searchKeywordDictionary={ "abundance":True, "deplmint":False, "QODBC":True, "bld":False }
|
||||
|
@@ -23,8 +23,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
import os
|
||||
|
||||
# Helper class to create a tree structure
|
||||
class Tree:
|
||||
def __init__(self, name=None, value=None, children=None):
|
||||
|
@@ -25,8 +25,6 @@
|
||||
|
||||
source("../../shared/qtcreator.py")
|
||||
|
||||
import re
|
||||
|
||||
currentSelectedTreeItem = None
|
||||
warningOrError = re.compile('<p><b>((Error|Warning).*?)</p>')
|
||||
|
||||
|
Reference in New Issue
Block a user