parameters: (self)
docstring: Rollback the changes previously made by remove().
docstring_summary: Rollback the changes previously made by remove().
docstring_tokens: Rollback the changes previously made by remove () .
function: def rollback(self):
          """Rollback the changes previously made by remove()."""
          if self.save_dir is None:
              logger.error(
                  "Can't roll back %s; was not uninstalled",
                  self.dist.project_name,
              )
              return False
          logger.info('Rolling back uninstall of %s', self.dist.project_name)
          for path in self._moved_paths:
              tmp_path = self._stash(path)
              logger.debug('Replacing %s', path)
              renames(tmp_path, path)
          for pth in self.pth.values():
              pth.rollback()
function_tokens: def rollback ( self ) : if self . save_dir is None : logger . error ( "Can't roll back %s; was not uninstalled" , self . dist . project_name , ) return False logger . info ( 'Rolling back uninstall of %s' , self . dist . project_name ) for path in self . _moved_paths : tmp_path = self . _stash ( path ) logger . debug ( 'Replacing %s' , path ) renames ( tmp_path , path ) for pth in self . pth . values ( ) : pth . rollback ( )