mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
[git_common] Relocate comment
Change-Id: I489df67dae5607acc4edbb0243b149eae1742733 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5641088 Reviewed-by: Yiwei Zhang <yiwzhang@google.com> Commit-Queue: Allen Li <ayatane@chromium.org>
This commit is contained in:
@@ -2,9 +2,6 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
# Monkeypatch IMapIterator so that Ctrl-C can kill everything properly.
|
||||
# Derived from https://gist.github.com/aljungberg/626518
|
||||
|
||||
import multiprocessing.pool
|
||||
import sys
|
||||
import threading
|
||||
@@ -21,6 +18,8 @@ def wrapper(func):
|
||||
return wrap
|
||||
|
||||
|
||||
# Monkeypatch IMapIterator so that Ctrl-C can kill everything properly.
|
||||
# Derived from https://gist.github.com/aljungberg/626518
|
||||
IMapIterator.next = wrapper(IMapIterator.next)
|
||||
IMapIterator.__next__ = IMapIterator.next
|
||||
# TODO(iannucci): Monkeypatch all other 'wait' methods too.
|
||||
|
||||
Reference in New Issue
Block a user