summaryrefslogtreecommitdiff
path: root/buildstream/_signals.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-02-14 15:16:58 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 14:10:26 +0000
commit05fa346f9911638b272eca0b62a110b590803ab2 (patch)
treee834cef0de6d74e4b45f8ab5acb1b3d3cfcbd1ad /buildstream/_signals.py
parent1ba6167b8fc86964bfb0f12f266eb25b8233e194 (diff)
downloadbuildstream-05fa346f9911638b272eca0b62a110b590803ab2.tar.gz
pylint - dealt with global-statement warning
Diffstat (limited to 'buildstream/_signals.py')
-rw-r--r--buildstream/_signals.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_signals.py b/buildstream/_signals.py
index 84a5af94f..30af75b36 100644
--- a/buildstream/_signals.py
+++ b/buildstream/_signals.py
@@ -70,7 +70,7 @@ def terminator_handler(signal, frame):
#
@contextmanager
def terminator(terminate_func):
- global terminator_stack
+ global terminator_stack # pylint: disable=global-statement
outermost = False if terminator_stack else True
@@ -130,7 +130,7 @@ def suspend_handler(sig, frame):
#
@contextmanager
def suspendable(suspend_callback, resume_callback):
- global suspendable_stack
+ global suspendable_stack # pylint: disable=global-statement
outermost = False if suspendable_stack else True
suspender = Suspender(suspend_callback, resume_callback)