summaryrefslogtreecommitdiffstats
path: root/release/update_manpages.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2023-08-21 21:26:51 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-08-22 18:22:49 +0000
commit06ddc8c50a7e802dbaf8468144c2b5773cda3714 (patch)
tree32cda2abbdf1848ad88e87456f753ef1b838fcbe /release/update_manpages.py
parent16109a66b705211efd25f434201d113628aff04c (diff)
downloadgit-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.py6
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
20from pathlib import Path 20from pathlib import Path
21from functools import partial
22import argparse 21import argparse
22import functools
23import multiprocessing 23import multiprocessing
24import os 24import os
25import re 25import 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