def prepare_patch(code): return code def apply_patch(target_file, code): with open(target_file, "w", encoding="utf8") as f: f.write(code) return True