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

Simplify FileList._safe_path for PathLike support #4251

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Mar 3, 2024

  • In FileList.append
  • Refactor _safe_path into three functions. Remove support for bytes. Allow for path to be PathLike.

Summary of changes

Supports pypa/distutils#237.

Pull Request Checklist

@jaraco
Copy link
Member Author

jaraco commented May 10, 2024

I wonder if anyone is still dependent on the support for bytes decoding. I guess we should either retain compatibility or declare the change as backward-incompatible. I'll do the latter; we can back out the change (restore support for bytes) if it turns out to cause any trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant