Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions pykokkos/core/parsers/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,12 @@ def fix_decorator(
# no change needed
return entity_tree.decorator_list

call_obj = ast.Call()
call_obj.func = ast.Attribute(
func = ast.Attribute(
value=ast.Name(id=self.pk_import, ctx=ast.Load()),
attr="workunit",
ctx=ast.Load(),
)
call_obj.args = []
call_obj.keywords = []
call_obj = ast.Call(func=func, args=[], keywords=[])

for view, specifier_dict in updated_decorator.inferred_decorator.items():
call_obj.keywords.append(self.get_keyword_node(view, specifier_dict))
Expand Down