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.notify('Rolling back uninstall of %s' % self.dist.project_name)
          for path in self._moved_paths:
              tmp_path = self._stash(path)
              logger.info('Replacing %s' % path)
              renames(tmp_path, path)
          for pth in self.pth:
              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 . notify ( 'Rolling back uninstall of %s' % self . dist . project_name ) for path in self . _moved_paths : tmp_path = self . _stash ( path ) logger . info ( 'Replacing %s' % path ) renames ( tmp_path , path ) for pth in self . pth : pth . rollback ( )