Despite being documented as urlstring [1], using a keyword argument
raises a TypeError:
TypeError: urlparse() got an unexpected keyword argument 'urlstring'
[1]: http://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse
url = environ.get('PATH_INFO', None)
if url is None:
raise InvalidFile(url=url)
- parsed_url = _urllib_parse.urlparse(urlstring=url)
+ parsed_url = _urllib_parse.urlparse(url)
relative_path = parsed_url.path.lstrip('/').replace('/', _os.path.sep)
cache_path = _os.path.join(self.cache, relative_path)
if not _os.path.exists(path=cache_path):