Skip to content

Commit 4a063b7

Browse files
committed
Merge pull request pypa#8167 from pradyunsg/drop-list-parallelization
1 parent a526f93 commit 4a063b7

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

news/8167.removal

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Drop parallelization from ``pip list --outdated``.

src/pip/_internal/commands/list.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55

66
import json
77
import logging
8-
from multiprocessing.dummy import Pool
98

109
from pip._vendor import six
11-
from pip._vendor.requests.adapters import DEFAULT_POOLSIZE
1210

1311
from pip._internal.cli import cmdoptions
1412
from pip._internal.cli.req_command import IndexGroupCommand
@@ -210,18 +208,10 @@ def latest_info(dist):
210208
dist.latest_filetype = typ
211209
return dist
212210

213-
# This is done for 2x speed up of requests to pypi.org
214-
# so that "real time" of this function
215-
# is almost equal to "user time"
216-
pool = Pool(DEFAULT_POOLSIZE)
217-
218-
for dist in pool.imap_unordered(latest_info, packages):
211+
for dist in map(latest_info, packages):
219212
if dist is not None:
220213
yield dist
221214

222-
pool.close()
223-
pool.join()
224-
225215
def output_package_listing(self, packages, options):
226216
packages = sorted(
227217
packages,

0 commit comments

Comments
 (0)