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>2011-09-26 19:39:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-26 19:39:15 +0400
commit8a423f59ea123948383f024695bf058213169d82 (patch)
tree9ea31963eb9921ac66838ea3724732a8aa05c3c9 /build_files
parentdc19877a09e307b91378565cca6e42aca6f68d9e (diff)
pep8 cleanup and fix for keymap test operator from my own recent fix.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/cmake_static_check_cppcheck.py2
-rw-r--r--build_files/cmake/project_source_info.py5
2 files changed, 2 insertions, 5 deletions
diff --git a/build_files/cmake/cmake_static_check_cppcheck.py b/build_files/cmake/cmake_static_check_cppcheck.py
index fdd380c5b4d..1c8d619a513 100644
--- a/build_files/cmake/cmake_static_check_cppcheck.py
+++ b/build_files/cmake/cmake_static_check_cppcheck.py
@@ -58,8 +58,8 @@ def main():
check_commands.append((c, cmd))
-
process_functions = []
+
def my_process(i, c, cmd):
percent = 100.0 * (i / (len(check_commands) - 1))
percent_str = "[" + ("%.2f]" % percent).rjust(7) + " %:"
diff --git a/build_files/cmake/project_source_info.py b/build_files/cmake/project_source_info.py
index 83e4e05dc0f..c636d778aaa 100644
--- a/build_files/cmake/project_source_info.py
+++ b/build_files/cmake/project_source_info.py
@@ -161,8 +161,6 @@ def queue_processes(process_funcs, job_total=-1):
del multiprocessing
if job_total == 1:
- import os
- import sys
for func, args in process_funcs:
sys.stdout.flush()
sys.stderr.flush()
@@ -171,14 +169,13 @@ def queue_processes(process_funcs, job_total=-1):
process.wait()
else:
import time
- import subprocess
processes = []
for func, args in process_funcs:
# wait until a thread is free
while 1:
processes[:] = [p for p in processes if p.poll() is None]
-
+
if len(processes) <= job_total:
break
else: