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

Removed slash ('/') at the end of URL for python 3.8 compatibility #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lepri
Copy link

@lepri lepri commented Jul 12, 2020

When we're using Python 3.8 we get a duplicated path when URL ends with '/'.
i.e.: 'https://api.iugu.com/v1/customers/customers'

When we're using Python 3.8 we get a duplicated path when URL ends with '/'.
i.e.: 'https://api.iugu.com/v1/customers/customers'
@lepri
Copy link
Author

lepri commented Jul 14, 2020

>>> url = 'https://api.iugu.com/v1/'
>>> path = 'customers'
>>> re.sub(r'/?$', re.sub(r'^/?', '/', str(path)), url)
 'https://api.iugu.com/v1/customers/customers'

@lepri
Copy link
Author

lepri commented Aug 10, 2020

Hi,

Anyone can take a look at this PR?

Copy link

@thamiriszalko thamiriszalko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works for me too! It's working locally.

@guilhermej
Copy link

This will not be merged? This company is a joke.

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.

4 participants