def path_to_url(path):<EOL>
path = os.path.normpath(os.path.abspath(path))<EOL>url = urllib_parse.urljoin('<STR_LIT>', urllib_request.pathname2url(path))<EOL>return url<EOL>
Convert a path to a file: URL.  The path will be made absolute and have
quoted path parts.