def strip_vl_extension(filename):
for ext in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if filename.endswith(ext):<EOL><INDENT>return filename[:-len(ext)]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return filename<EOL><DEDENT>
Strip the vega-lite extension (either vl.json or json) from filename