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)