Skip to content

Commit

Permalink
style(action_manager): hop
Browse files Browse the repository at this point in the history
Signed-off-by: TsXor <[email protected]>
  • Loading branch information
TsXor committed Sep 8, 2022
1 parent afd6199 commit 5ecb5ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def load(cls, adict: dict, namespace: dict): # pass globals() for namespace
continue
# py37 compat
try:
exec(r'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)') # noqa
except SyntaxError:
val = v if parsetype(v) == "others" else namespace[parsetype(v)].load(v)
new.uput(k, val)
Expand Down
2 changes: 1 addition & 1 deletion photoshop/api/action_manager/_main_types/action_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def load(cls, alist: list, namespace: dict): # pass globals() for namespace
for v in alist:
# py37 compat
try:
exec(r'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)') # noqa
except SyntaxError:
val = v if parsetype(v) == "others" else namespace[parsetype(v)].load(v)
new.uput(val)
Expand Down

0 comments on commit 5ecb5ab

Please sign in to comment.