Skip to content

Commit

Permalink
Merge pull request #77 from nimamg/fix-list-comp
Browse files Browse the repository at this point in the history
Fix hook name in CodeInstrumenter
  • Loading branch information
AryazE authored Oct 18, 2024
2 parents b78f8bb + fccceda commit 9c645af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynapyt/instrument/CodeInstrumenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def leave_List(self, original_node, updated_node):
return call

def leave_ListComp(self, original_node, updated_node):
if "list" not in self.selected_hooks:
if "_list" not in self.selected_hooks:
return updated_node
callee_name = cst.Attribute(
value=cst.Name(value="_rt"), attr=cst.Name(value="_list_")
Expand Down

0 comments on commit 9c645af

Please sign in to comment.