mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Drop py2 support in gerrit and git related files
python3 is the only supported version of python in depot_tools. Bug: 1475402 Change-Id: Ie4ee18d297081b3aa0206b8d7ce6461819bff0ca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4809560 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Gavin Mak <gavinmak@google.com>
This commit is contained in:
@@ -13,9 +13,7 @@ from multiprocessing.pool import IMapIterator
|
||||
|
||||
def wrapper(func):
|
||||
def wrap(self, timeout=None):
|
||||
default_timeout = (1 << 31 if sys.version_info.major == 2 else
|
||||
threading.TIMEOUT_MAX)
|
||||
return func(self, timeout=timeout or default_timeout)
|
||||
return func(self, timeout=timeout or threading.TIMEOUT_MAX)
|
||||
|
||||
return wrap
|
||||
IMapIterator.next = wrapper(IMapIterator.next)
|
||||
|
||||
Reference in New Issue
Block a user