From afd6199c63169a890659d2dcc37b97fba1cea25a Mon Sep 17 00:00:00 2001 From: TsXor Date: Thu, 8 Sep 2022 16:15:42 +0800 Subject: [PATCH] style(action_manager): hop Signed-off-by: TsXor --- photoshop/api/action_manager/_main_types/action_descriptor.py | 2 +- photoshop/api/action_manager/_main_types/action_list.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/photoshop/api/action_manager/_main_types/action_descriptor.py b/photoshop/api/action_manager/_main_types/action_descriptor.py index 56387416..af5a70f5 100644 --- a/photoshop/api/action_manager/_main_types/action_descriptor.py +++ b/photoshop/api/action_manager/_main_types/action_descriptor.py @@ -24,7 +24,7 @@ def load(cls, adict: dict, namespace: dict): # pass globals() for namespace continue # py37 compat try: - exec("""val = v if (dtype := parsetype(v)) == "others" else namespace[dtype].load(v)""") + exec(r'val = v if (dtype := parsetype(v)) == "others" else namespace[dtype].load(v)') except SyntaxError: val = v if parsetype(v) == "others" else namespace[parsetype(v)].load(v) new.uput(k, val) diff --git a/photoshop/api/action_manager/_main_types/action_list.py b/photoshop/api/action_manager/_main_types/action_list.py index d9a76517..ebe8f656 100644 --- a/photoshop/api/action_manager/_main_types/action_list.py +++ b/photoshop/api/action_manager/_main_types/action_list.py @@ -20,7 +20,7 @@ def load(cls, alist: list, namespace: dict): # pass globals() for namespace for v in alist: # py37 compat try: - exec("""val = v if (dtype := parsetype(v)) == "others" else namespace[dtype].load(v)""") + exec(r'val = v if (dtype := parsetype(v)) == "others" else namespace[dtype].load(v)') except SyntaxError: val = v if parsetype(v) == "others" else namespace[parsetype(v)].load(v) new.uput(val)