std_silent.dest_stderr.flush()
if exc_type is not None:
out = open(std_silent.dest_fname_stdout, "r").read()
err = open(std_silent.dest_fname_stderr, "r").read()
os.dup2(self.orig_out_fd, 1)
os.dup2(self.orig_err_fd, 2)
os.close(self.orig_out_fd)
os.close(self.orig_err_fd)
if exc_type is not None:
sys.stdout.write(out)
sys.stderr.write(err)