diff options
Diffstat (limited to 'release/update_manpages.py')
| -rw-r--r-- | release/update_manpages.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/update_manpages.py b/release/update_manpages.py index cd2acc01..cb687245 100644 --- a/release/update_manpages.py +++ b/release/update_manpages.py | |||
| @@ -18,8 +18,8 @@ Most code lives in this module so it can be unittested. | |||
| 18 | """ | 18 | """ |
| 19 | 19 | ||
| 20 | from pathlib import Path | 20 | from pathlib import Path |
| 21 | from functools import partial | ||
| 22 | import argparse | 21 | import argparse |
| 22 | import functools | ||
| 23 | import multiprocessing | 23 | import multiprocessing |
| 24 | import os | 24 | import os |
| 25 | import re | 25 | import re |
| @@ -112,7 +112,9 @@ def main(argv): | |||
| 112 | 112 | ||
| 113 | # Run all cmd in parallel, and wait for them to finish. | 113 | # Run all cmd in parallel, and wait for them to finish. |
| 114 | with multiprocessing.Pool() as pool: | 114 | with multiprocessing.Pool() as pool: |
| 115 | pool.map(partial(worker, cwd=tempdir, check=True), cmdlist) | 115 | pool.map( |
| 116 | functools.partial(worker, cwd=tempdir, check=True), cmdlist | ||
| 117 | ) | ||
| 116 | 118 | ||
| 117 | for tmp_path in MANDIR.glob("*.1.tmp"): | 119 | for tmp_path in MANDIR.glob("*.1.tmp"): |
| 118 | path = tmp_path.parent / tmp_path.stem | 120 | path = tmp_path.parent / tmp_path.stem |
