summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
authorFrederik Gladhorn <[email protected]>2019-10-10 17:05:59 +0200
committerFrederik Gladhorn <[email protected]>2019-10-11 07:49:20 +0000
commit2d1aee85958c7a3ea7e322c06f882185e40aa1ac (patch)
treef4e32a5e9176d3aee540e092a95a3bed6393166f /util/cmake/pro2cmake.py
parentc31f2683cc84b29b0044ec258b0055f6e5be4944 (diff)
cmake scripts: minor cleanup
not in is considered easier to read and thus recommended (flake8) and avoid one temporary name that is never used. Adjust flake8 to be compatible with black formatting. Change-Id: Ia049adb2344f11b53c78574972f6d9d670f4e66d Reviewed-by: Alexandru Croitor <[email protected]> Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 0b814f432fe..bcb145cb59b 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -2979,7 +2979,7 @@ def handle_app_or_lib(
elif is_plugin:
assert not is_example
target = write_plugin(cm_fh, scope, indent=indent)
- elif is_lib and not "qt_module" in scope.get("_LOADED"):
+ elif is_lib and "qt_module" not in scope.get("_LOADED"):
assert not is_example
target = write_generic_library(cm_fh, scope, indent=indent)
elif is_lib or "qt_module" in scope.get("_LOADED"):