def __exit__ ( self , * args ) : sys . stdout = self . _orig self . _devnull . close ( )
python redirect stdout contextmanager
Redirect stdout back to the original stdout .
def __exit__(self, *args):
        """Redirect stdout back to the original stdout."""
        sys.stdout = self._orig
        self._devnull.close()