def write_temp_files(turret, files):
    writed_files = []
    for f in files:
        try:
            with open(f['filename'], 'w') as fd:
                fd.write(f['content'])
                writed_files.append(f['filename'])
        except __HOLE__ as e:
            print("Error while packaging turret %s" % turret['name'])
            print("Error: %s" % e)
    return writed_files
dataset/ETHPy150Open TheGhouls/oct/oct/utilities/pack.py/write_temp_files