aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/qdoc_spawner.py.in
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-10-18 13:14:55 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-10-21 14:03:59 +0200
commit22ee18a691816e9d5453913db9085eedb6d2dee5 (patch)
tree34ae1e4084df40df024c8b74226f3e9fabf517dc /sources/pyside6/doc/qdoc_spawner.py.in
parent9e2d49988876c48ece633446fa031856bd78d857 (diff)
Fix some flake8 warnings in configured Python files
Pick-to: 6.8 Change-Id: Idd43e3263d27217f142b9f484d3053fb0b832677 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
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: