'Plugs back the original file descriptors
for stdout and stderr'

def __exit__(self, exc_type, exception, traceback):

    sys.stdout.flush()
    sys.stderr.flush()
    if self.directAssignment:
        sys.stdout = self._stdout
        sys.stderr = self._stderr
    else:
        os.dup2(self._stdout, sys.stdout.fileno())
        os.dup2(self._stderr, sys.stderr.fileno())
    color._force_color = self._force_color
    tty._debug = self._debug
