diff options
Diffstat (limited to 'build_files/cmake/project_source_info.py')
-rw-r--r-- | build_files/cmake/project_source_info.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build_files/cmake/project_source_info.py b/build_files/cmake/project_source_info.py index 1479d62e6c5..7a00f756e03 100644 --- a/build_files/cmake/project_source_info.py +++ b/build_files/cmake/project_source_info.py @@ -114,12 +114,11 @@ def makefile_log() -> List[str]: print("Can't execute process") sys.exit(1) - while process.poll(): time.sleep(1) # We know this is always true based on the input arguments to `Popen`. - stdout: IO[bytes] = process.stdout # type: ignore + stdout: IO[bytes] = process.stdout # type: ignore out = stdout.read() stdout.close() @@ -210,7 +209,7 @@ def build_defines_as_source() -> str: ) # We know this is always true based on the input arguments to `Popen`. - stdout: IO[bytes] = process.stdout # type: ignore + stdout: IO[bytes] = process.stdout # type: ignore return cast(str, stdout.read().strip().decode('ascii')) @@ -228,7 +227,7 @@ def build_defines_as_args() -> List[str]: def queue_processes( process_funcs: Sequence[Tuple[Callable[..., subprocess.Popen[Any]], Tuple[Any, ...]]], *, - job_total: int =-1, + job_total: int = -1, sleep: float = 0.1, ) -> None: """ Takes a list of function arg pairs, each function must return a process |