File tree 2 files changed +2
-11
lines changed
src/pip/_internal/commands
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change
1
+ Drop parallelization from ``pip list --outdated``.
Original file line number Diff line number Diff line change 5
5
6
6
import json
7
7
import logging
8
- from multiprocessing .dummy import Pool
9
8
10
9
from pip ._vendor import six
11
- from pip ._vendor .requests .adapters import DEFAULT_POOLSIZE
12
10
13
11
from pip ._internal .cli import cmdoptions
14
12
from pip ._internal .cli .req_command import IndexGroupCommand
@@ -210,18 +208,10 @@ def latest_info(dist):
210
208
dist .latest_filetype = typ
211
209
return dist
212
210
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 ):
219
212
if dist is not None :
220
213
yield dist
221
214
222
- pool .close ()
223
- pool .join ()
224
-
225
215
def output_package_listing (self , packages , options ):
226
216
packages = sorted (
227
217
packages ,
You can’t perform that action at this time.
0 commit comments