def _remove_extension(filename):
    """
    Returns a file name without its extension

    :param filename: The name of a file
    :return: The name of the file without the extension
    """
    return filename.rsplit(".", 1)[0]