Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-07-30 11:15:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-07-30 11:17:11 +0300
commit8018f5bd35f5434e78ba53fc85744fc7f65bb4e6 (patch)
tree5ac8988a95978382358af999531791f50c12eea6 /build_files/cmake/project_info.py
parent6e9ad094b258997b1570bcf24fbbfe7d6716820a (diff)
Cleanup: pep8
Diffstat (limited to 'build_files/cmake/project_info.py')
-rwxr-xr-xbuild_files/cmake/project_info.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/build_files/cmake/project_info.py b/build_files/cmake/project_info.py
index cfcd9df65c8..897b2a53b35 100755
--- a/build_files/cmake/project_info.py
+++ b/build_files/cmake/project_info.py
@@ -214,7 +214,12 @@ def cmake_advanced_info():
def cmake_cache_var(var):
cache_file = open(join(CMAKE_DIR, "CMakeCache.txt"), encoding='utf-8')
- lines = [l_strip for l in cache_file for l_strip in (l.strip(),) if l_strip if not l_strip.startswith("//") if not l_strip.startswith("#")]
+ lines = [
+ l_strip for l in cache_file
+ for l_strip in (l.strip(),)
+ if l_strip
+ if not l_strip.startswith(("//", "#"))
+ ]
cache_file.close()
for l in lines: