Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename safe_rmtree and ensure remove_directory is used instead of shutil.rmtree #5510

Merged
merged 1 commit into from
Apr 30, 2022

Conversation

abn
Copy link
Member

@abn abn commented Apr 28, 2022

This change renames safe_rmtree into a more appropriate name with relevant arguments. We ensure that the force behaviour is opt-in and not the default to avoid ambiguity.

This combines the work done in c12d86b7 and #520.

@abn abn requested a review from a team April 28, 2022 01:49
@abn abn changed the title ensure safe_rmtree is used instead of shutil.rmtree rename safe_rmtree and ensure remove_directory is used instead of shutil.rmtree Apr 28, 2022
@abn abn mentioned this pull request Apr 29, 2022
2 tasks
src/poetry/installation/executor.py Outdated Show resolved Hide resolved
src/poetry/installation/pip_installer.py Show resolved Hide resolved
src/poetry/utils/env.py Show resolved Hide resolved
This change renames `safe_rmtree` into a more appropriate name with
relevant arguments. We ensure that the force behaviour is opt-in
and not the default to avoid ambiguity.
@abn abn requested a review from finswimmer April 29, 2022 22:45
@finswimmer finswimmer merged commit 6721ebe into python-poetry:master Apr 30, 2022
@abn abn deleted the safe-rmtree branch April 30, 2022 10:39
@kasteph kasteph mentioned this pull request May 30, 2022
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants