aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/qdoc_spawner.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/doc/qdoc_spawner.py.in')
-rw-r--r--sources/pyside6/doc/qdoc_spawner.py.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/sources/pyside6/doc/qdoc_spawner.py.in b/sources/pyside6/doc/qdoc_spawner.py.in
index 59c6e8f2a..95342d433 100644
--- a/sources/pyside6/doc/qdoc_spawner.py.in
+++ b/sources/pyside6/doc/qdoc_spawner.py.in
@@ -35,16 +35,16 @@ def run_qdoc(file, qdoc_args, args):
duration = round(time.time() - start_time)
if args.verbose or returncode != 0 or err:
- cmd_str = " ".join(command)
- print(f"> Output of: {cmd_str}")
- if out:
- print(out.decode("utf-8"), file=sys.stdout)
- if err:
+ cmd_str = " ".join(command)
+ print(f"> Output of: {cmd_str}")
+ if out:
+ print(out.decode("utf-8"), file=sys.stdout)
+ if err:
print(err.decode("utf-8"), file=sys.stderr)
- print(f"> Finished: {file} {duration}s (exit code {returncode})")
+ print(f"> Finished: {file} {duration}s (exit code {returncode})")
if returncode != 0:
- raise Exception(f"Failing executing the command {command} ({returncode})")
+ raise Exception(f"Failing executing the command {command} ({returncode})")
def get_qdocconf_files():
@@ -95,7 +95,8 @@ if __name__ == "__main__":
try:
# mode: -prepare -no-link-errors
with Pool(int(parallel)) as p:
- p.starmap(run_qdoc, [(str(f), ["-prepare", "-no-link-errors"], args) for f in files_prepare])
+ files = [(str(f), ["-prepare", "-no-link-errors"], args) for f in files_prepare]
+ p.starmap(run_qdoc, files)
# mode: -single-exec
with Pool(int(parallel)) as p: