Skip to content

Commit 4ddd162

Browse files
author
bmartinn
committed
pep8
1 parent 7c286cd commit 4ddd162

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/pip/_internal/req/__init__.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,16 @@ def install_given_reqs(
6565
# pre allocate installed package names
6666
installed = [None] * len(to_install)
6767
install_args = [install_options, global_options, dict(
68-
root=root, home=home, prefix=prefix, warn_script_location=warn_script_location,
69-
use_user_site=use_user_site, pycompile=pycompile)]
68+
root=root, home=home, prefix=prefix,
69+
warn_script_location=warn_script_location,
70+
use_user_site=use_user_site, pycompile=pycompile)]
7071

7172
if Pool is not None:
7273
# first let's try to install in parallel, if we fail we do it by order.
7374
pool = Pool()
7475
try:
75-
pool_result = pool.starmap_async(__single_install, [(install_args, r) for r in to_install])
76+
pool_result = pool.starmap_async(
77+
__single_install, [(install_args, r) for r in to_install])
7678
# python 2.7 timeout=None will not catch KeyboardInterrupt
7779
installed = pool_result.get(timeout=999999)
7880
except (KeyboardInterrupt, SystemExit):
@@ -87,7 +89,8 @@ def install_given_reqs(
8789
with indent_log():
8890
for i, requirement in enumerate(to_install):
8991
if installed[i] is None:
90-
installed[i] = __single_install(install_args, requirement, allow_raise=True)
92+
installed[i] = __single_install(
93+
install_args, requirement, allow_raise=True)
9194

9295
return [i for i in installed if i is not None]
9396

0 commit comments

Comments
 (0)