We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying urlpath 1.1.4 with Python 3.8. The output it's producing has an extra slash:
>>> from urlpath import URL >>> URL('s3://mybucket/') / 'myprefix' URL('s3://mybucket//myprefix')
There is an extra slash above between mybucket and myprefix which shouldn't exist.
mybucket
myprefix
Compare it with the output of pathlib which is undesirable in another way, but doesn't have this extra slash in that location:
pathlib
>>> from pathlib import Path >>> Path('s3://mybucket/') / 'myprefix' PosixPath('s3:/mybucket/myprefix')
The text was updated successfully, but these errors were encountered:
Possibly related: The .with_scheme method adds a triple slash.
.with_scheme
url = URL("www.abc.com").with.scheme("https") print(url) # prints https:///www.abc.com
Sorry, something went wrong.
No branches or pull requests
I am trying urlpath 1.1.4 with Python 3.8. The output it's producing has an extra slash:
There is an extra slash above between
mybucket
andmyprefix
which shouldn't exist.Compare it with the output of
pathlib
which is undesirable in another way, but doesn't have this extra slash in that location:The text was updated successfully, but these errors were encountered: