Skip to content

Remove redundant expanduser for download_dir in preparer #7535

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

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented Jan 1, 2020

Following from #7524 (comment)

Since

  • the download_dir preparer attribute is only set by the download command
  • download_dir is normalized at the beginning of the download command
  • normalize_path includes expanduser

Therefore expanduser in the preparer is redundant

Since
- download_dir is only set by the download command
- download_dir is
normalized at the beginning of the download command
- path normalization includes expanduser
Therefore expanduser in the preparer is redundant
@sbidoul sbidoul added the skip news Does not need a NEWS file entry (eg: trivial changes) label Jan 1, 2020
@xavfernandez xavfernandez merged commit 68e49b9 into pypa:master Jan 1, 2020
@xavfernandez
Copy link
Member

Thanks for following up :)

@sbidoul sbidoul deleted the remove-redundant-download-dir-normalization-sbi branch January 1, 2020 19:40
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jan 31, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants