This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch aevri/win32_minimal in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 3c67037b0952218da5eaf98b145ebd1d3145ea25 Author: Angelos Evripiotis <[email protected]> AuthorDate: Tue Oct 8 09:24:25 2019 +0100 _signals.suspendable:"outermost" -> "is_outermost" --- src/buildstream/_signals.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/buildstream/_signals.py b/src/buildstream/_signals.py index 31982c1..ec598fc 100644 --- a/src/buildstream/_signals.py +++ b/src/buildstream/_signals.py @@ -146,17 +146,17 @@ def suspend_handler(sig, frame): def suspendable(suspend_callback, resume_callback): global suspendable_stack # pylint: disable=global-statement - outermost = bool(not suspendable_stack) + is_outermost = bool(not suspendable_stack) suspender = Suspender(suspend_callback, resume_callback) suspendable_stack.append(suspender) - if outermost: + if is_outermost: original_stop = signal.signal(signal.SIGTSTP, suspend_handler) try: yield finally: - if outermost: + if is_outermost: signal.signal(signal.SIGTSTP, original_stop) suspendable_stack.pop()
