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

asdf.util.filepath_to_url does not accept Path instances #1717

Closed
braingram opened this issue Dec 21, 2023 · 0 comments · Fixed by #1735
Closed

asdf.util.filepath_to_url does not accept Path instances #1717

braingram opened this issue Dec 21, 2023 · 0 comments · Fixed by #1735
Milestone

Comments

@braingram
Copy link
Contributor

Description of the problem

asdf.util.filepath_to_url raises an exception when provided with a pathlib.Path instance.

Example of the problem

import asdf, pathlib

p = pathlib.Path('foo')
asdf.util.filepath_to_url(p)  # raises TypeError: quote_from_bytes() expected bytes

System information

asdf version: main
python version: 3.10
operating system: mac osx

@braingram braingram added this to the 3.1.0 milestone Dec 21, 2023
@braingram braingram modified the milestones: 3.1.0, 3.2.0 Feb 27, 2024
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 a pull request may close this issue.

1 participant