@contextmanager<EOL><INDENT>def _suppress_output(self):<DEDENT>
STDOUT_FILENO = <NUM_LIT:1><EOL>STDERR_FILENO = <NUM_LIT:2><EOL>with open(os.devnull, "<STR_LIT:w>") as null:<EOL><INDENT>stdout = os.dup(STDOUT_FILENO)<EOL>stderr = os.dup(STDERR_FILENO)<EOL>os.dup2(null.fileno(), STDOUT_FILENO)<EOL>os.dup2(null.fileno(), STDERR_FILENO)<EOL><DEDENT>try:<EOL><INDENT>yield<EOL><DEDENT>finally:<EOL><INDENT>os.dup2(stdout, STDOUT_FILENO)<EOL>os.dup2(stderr, STDERR_FILENO)<EOL>os.close(stdout)<EOL>os.close(stderr)<EOL><DEDENT>
Silence error messages from the "patch" command