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

Ensure 'str' and trailing slash in path2url #595

Merged
merged 1 commit into from
Mar 20, 2018
Merged

Conversation

Tontyna
Copy link
Contributor

@Tontyna Tontyna commented Mar 20, 2018

This PR fixes the errors caused by weasyprint/urls/path2url, detected when pytesting on Windows, see #587.

It ensures that Python's urllib.request.pathname2url() isn't fed with binary pathnames and takes care of the trailing slash for directories.

@liZe
Copy link
Member

liZe commented Mar 20, 2018

Looks like a good idea and shouldn't break anything, that's cool. Thank you!

@liZe liZe merged commit 5269a65 into Kozea:master Mar 20, 2018
@Tontyna Tontyna deleted the fix-path2url branch March 20, 2018 09:44
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.

2 participants