瀏覽代碼

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)


Loading…
取消
儲存