urllib.url2pathname()

urllib.url2pathname(pathname)[source]

OS-specific conversion from a relative URL of the ‘file’ scheme to a file system path; not recommended for general use.