def __init__(self, stdout=None, stderr=None, encoding=_default_encoding):
self._stdout = stdout<EOL>if stderr == STDOUT:<EOL><INDENT>self._stderr = self._stdout<EOL><DEDENT>else:<EOL><INDENT>self._stderr = stderr<EOL><DEDENT>self.encoding = encoding<EOL>self._save_fds = {}<EOL>self._real_fds = {}<EOL>self._handlers = {}<EOL>self._handlers['<STR_LIT>'] = self._handle_stderr<EOL>self._handlers['<STR_LIT>'] = self._handle_stdout<EOL>
Parameters
----------
stdout: stream or None
    The stream for forwarding stdout.
stderr = stream or None
    The stream for forwarding stderr.
encoding: str or None
    The encoding to use, if streams should be interpreted as text.