Open lepri opened 4 years ago
>>> url = 'https://api.iugu.com/v1/'
>>> path = 'customers'
>>> re.sub(r'/?$', re.sub(r'^/?', '/', str(path)), url)
'https://api.iugu.com/v1/customers/customers'
Hi,
Anyone can take a look at this PR?
This will not be merged? This company is a joke.
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'