forked from p15670423/monkey
Agent: Fix mypy issues in capture_output.py
This commit is contained in:
parent
ccfc41fc2f
commit
70c74b87a9
|
@ -7,7 +7,6 @@ class StdoutCapture:
|
||||||
self._orig_stdout = sys.stdout
|
self._orig_stdout = sys.stdout
|
||||||
self._new_stdout = io.StringIO()
|
self._new_stdout = io.StringIO()
|
||||||
sys.stdout = self._new_stdout
|
sys.stdout = self._new_stdout
|
||||||
return self
|
|
||||||
|
|
||||||
def get_captured_stdout_output(self) -> str:
|
def get_captured_stdout_output(self) -> str:
|
||||||
self._new_stdout.seek(0)
|
self._new_stdout.seek(0)
|
||||||
|
|
Loading…
Reference in New Issue