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()
|
||||
|
||||
def suspend_global_capture(self, in_=False):
|
||||
cap = getattr(self, "_global_capturing", None)
|
||||
if cap is not None:
|
||||
cap.suspend_capturing(in_=in_)
|
||||
if self._global_capturing is not None:
|
||||
self._global_capturing.suspend_capturing(in_=in_)
|
||||
|
||||
def suspend(self, in_=False):
|
||||
# Need to undo local capsys-et-al if it exists before disabling global capture.
|
||||
|
|
Loading…
Reference in New Issue