<s> def get_filename ( filename ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> result = filename [ : filename . index ( '<STR_LIT>' ) ] <EOL> except ValueError : <EOL> result = filename <EOL> if len ( result ) == <NUM_LIT:0> : <EOL> raise ValueError ( '<STR_LIT>' . format ( filename ) ) <EOL> return result </s>
