Change ThreadPool to Pool
@@ -5,7 +5,7 @@ from __future__ import absolute_import
import json
import logging
-from multiprocessing.pool import ThreadPool
+from multiprocessing.dummy import Pool
from pip._vendor import six
from pip._vendor.requests.adapters import DEFAULT_POOLSIZE
@@ -213,7 +213,7 @@ class ListCommand(IndexGroupCommand):
# This is done for 2x speed up of requests to pypi.org
# so that "real time" of this function
# is almost equal to "user time"
- pool = ThreadPool(DEFAULT_POOLSIZE)
+ pool = Pool(DEFAULT_POOLSIZE)
for dist in pool.imap_unordered(latest_info, packages):
if dist is not None:
