37def init(autoreset=False, convert=None, strip=None, wrap=True):
39 if not wrap
and any([autoreset, convert, strip]):
40 raise ValueError(
'wrap=False conflicts with any other arg=True')
42 global wrapped_stdout, wrapped_stderr
43 global orig_stdout, orig_stderr
52 wrap_stream(orig_stdout, convert, strip, autoreset, wrap)
57 wrap_stream(orig_stderr, convert, strip, autoreset, wrap)