浏览代码

Replaced Python 2 exec syntax usage with Python 3 syntax (#3835)

version-14
Aditya Hase 8 年前
committed by Rushabh Mehta
父节点
当前提交
729bbf0dad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/modules/patch_handler.py

+ 1
- 1
frappe/modules/patch_handler.py 查看文件

@@ -78,7 +78,7 @@ def execute_patch(patchmodule, method=None, methodargs=None):
frappe.flags.final_patches.append(patchmodule)
else:
if patchmodule.startswith("execute:"):
exec patchmodule.split("execute:")[1] in globals()
exec(patchmodule.split("execute:")[1],globals())
else:
frappe.get_attr(patchmodule.split()[0] + ".execute")()
update_patch_log(patchmodule)


正在加载...
取消
保存