(self, key)
Restore the original value for an environment variable.
Restore the original value for an environment variable.
Restore the original value for an environment variable .
def reset(self, key):
        """Restore the original value for an environment variable."""
        cached = self._saved.pop(key, None)
        if cached is None:
            os.environ.pop(key, None)
        else:
            os.environ[key] = cached
def reset ( self , key ) : cached = self . _saved . pop ( key , None ) if cached is None : os . environ . pop ( key , None ) else : os . environ [ key ] = cached