Function
urllib.pathname2url

Signature

pathname2url(pathname)

Documentation String

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