diff options
author | Mike Frysinger <vapier@google.com> | 2023-08-21 21:26:51 -0400 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-08-22 18:22:49 +0000 |
commit | 06ddc8c50a7e802dbaf8468144c2b5773cda3714 (patch) | |
tree | 32cda2abbdf1848ad88e87456f753ef1b838fcbe /release/update_manpages.py | |
parent | 16109a66b705211efd25f434201d113628aff04c (diff) | |
download | git-repo-06ddc8c50a7e802dbaf8468144c2b5773cda3714.tar.gz |
tweak stdlib imports to follow Google style guide
Google Python style guide says to import modules.
Clean up all our stdlib imports. Leave the repo ones alone
for now as that's a much bigger shave.
Change-Id: Ida42fc2ae78b86e6b7a6cbc98f94ca04b295f8cc
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/383714
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
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 |