def uri_to_path(uri):
    # TODO: decide on Unicode vs. bytes for URIs
    return unquote_to_bytes(urlsplit(uri).path)
Compute the path for the final output of the spec.
dataset/ETHPy150Open mopidy/mopidy/mopidy/m3u/translator.py/uri_to_path--crossover with--dataset/ETHPy150Open adobe/brackets-shell/gyp/pylib/gyp/generator/ninja.py/NinjaWriter.ComputeOutput