def windows_path_to_sublime_path(path):
    """
    Removes the colon after the drive letter and replaces backslashes with
    slashes.

    e.g.

        windows_path_to_sublime_path("C:\somedir\somefile")
        == "C/somedir/somefile"
    """

    assert path[1] == u':'
    without_colon = path[0] + path[2:]
    return without_colon.replace(u'\\', u'/')