I have a url in string that has white spaces enconded as '%20'.
url = 'https://somepath.com/test/Test%20path/my%20test%20file.txt'
when I pass it to URL I get the following:
>>> from urlpath import URL
>>> URL("https://somepath.com/test/Test%20path/my%20test%20file.txt")
URL('https://somepath.com/test/Test%2520path/my%20test%20file.txt')
apparently only happens when the spaces are in the midle of the path.