capture: remove unneeded getattr
This attribute is set in __init__ and not deleted. Other methods do it already but this one wasn't updated.
This commit is contained in:
parent
a35800c2e1
commit
7a704288df
|
@ -630,9 +630,8 @@ class CaptureManager:
|
||||||
self._global_capturing.resume_capturing()
|
self._global_capturing.resume_capturing()
|
||||||
|
|
||||||
def suspend_global_capture(self, in_=False):
|
def suspend_global_capture(self, in_=False):
|
||||||
cap = getattr(self, "_global_capturing", None)
|
if self._global_capturing is not None:
|
||||||
if cap is not None:
|
self._global_capturing.suspend_capturing(in_=in_)
|
||||||
cap.suspend_capturing(in_=in_)
|
|
||||||
|
|
||||||
def suspend(self, in_=False):
|
def suspend(self, in_=False):
|
||||||
# Need to undo local capsys-et-al if it exists before disabling global capture.
|
# Need to undo local capsys-et-al if it exists before disabling global capture.
|
||||||
|
|
Loading…
Reference in New Issue