parameters: (path)
return_statement: return url
docstring: Convert a path to a file: URL.  The path will be made absolute and have
  
      quoted path parts.
function: def path_to_url(path):
  
      # type: (str) -> str
  
      """
  
      Convert a path to a file: URL.  The path will be made absolute and have
  
      quoted path parts.
  
      """
  
      path = os.path.normpath(os.path.abspath(path))
  
      url = urllib.parse.urljoin('file:', urllib.request.pathname2url(path))
  
      return url
function_tokens: def path_to_url ( path ) : # type: (str) -> str path = os . path . normpath ( os . path . abspath ( path ) ) url = urllib . parse . urljoin ( 'file:' , urllib . request . pathname2url ( path ) ) return url