Commit 748c156d authored by Denis Bilenko's avatar Denis Bilenko

monkey: fix #177: patch_sys() ignores args

parent 256dfa9f
......@@ -78,9 +78,12 @@ def _patch_sys_std(name):
def patch_sys(stdin=True, stdout=True, stderr=True):
_patch_sys_std('stdin')
_patch_sys_std('stdout')
_patch_sys_std('stderr')
if stdin:
_patch_sys_std('stdin')
if stdout:
_patch_sys_std('stdout')
if stderr:
_patch_sys_std('stderr')
def patch_os():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment