def revert(self):
        """
        Restore the original :func:`atexit.register`.
        """
        assert atexit.register == self._atexit__register, \
            "AtExitWrapper not installed."
        atexit.register = self.original['register']
def revert ( self ) : assert atexit . register == self . _atexit__register , "AtExitWrapper not installed." atexit . register = self . original [ 'register' ]
Restore the original :func:`atexit.register`.