aboutsummaryrefslogtreecommitdiffstats
path: root/qtinfo.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-03-28 20:22:11 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-04-19 20:19:56 +0000
commit978b096849af36c9e82c118e189ea9614ee0fdd0 (patch)
treeba5cd7047bfb57018109b0824c1b7482c6b3ddd1 /qtinfo.py
parentad69024a695a459e2953f477d90a64004c818ff5 (diff)
Reformat and remove of trailing spaces from files
Continuing the 72/79 reformatting with the remaining Python files. Change-Id: I4fc0abd720326a16ed4b2d431fd703de71fe02e9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'qtinfo.py')
-rw-r--r--qtinfo.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/qtinfo.py b/qtinfo.py
index c61e796b0..e3591d987 100644
--- a/qtinfo.py
+++ b/qtinfo.py
@@ -100,7 +100,9 @@ class QtInfo(object):
return self.getProperty("QMAKE_MACOSX_DEPLOYMENT_TARGET")
def getBuildType(self):
- """ Return value is either debug, release, debug_release, or None. """
+ """
+ Return value is either debug, release, debug_release, or None.
+ """
return self.getProperty("BUILD_TYPE")
def getSrcDir(self):
@@ -168,8 +170,8 @@ class QtInfo(object):
return None
def _getOtherProperties(self):
- # Get the src property separately, because it is not returned by qmake unless explicitly
- # specified.
+ # Get the src property separately, because it is not returned by
+ # qmake unless explicitly specified.
key = 'QT_INSTALL_PREFIX/src'
result = self._getQMakeOutput(['-query', key])
self._query_dict[key] = result
@@ -182,7 +184,8 @@ class QtInfo(object):
if key in self._mkspecs_dict:
self._query_dict[key] = self._mkspecs_dict[key]
- # Figure out how Qt was built: debug mode, release mode, or both.
+ # Figure out how Qt was built:
+ # debug mode, release mode, or both.
build_type = self._parseQtBuildType()
if build_type:
self._query_dict['BUILD_TYPE'] = build_type
@@ -207,8 +210,8 @@ class QtInfo(object):
value = found.group(2).strip()
self._mkspecs_dict[key] = value
- # We need to clean up after qmake, which always creates a .qmake.stash file after a -E
- # invocation.
+ # We need to clean up after qmake, which always creates a
+ # .qmake.stash file after a -E invocation.
qmake_stash_file = os.path.join(os.getcwd(), ".qmake.stash")
if os.path.exists(qmake_stash_file):
os.remove(qmake_stash_file)