

def format_modeline(filetype):
    try:
        style = comment_style_map[filetype]
    except KeyError:
        style = vim_style
    return ((((style[0] + 'vim: set ft=') + filetype) + ':') + style[1])

dataset/ETHPy150Open fmoralesc/vim-pad/pythonx/pad/modelines.py format_modeline/original