Skip to content

Commit 759af38

Browse files
authored
Merge branch 'master' into 2384_directive_codeblocks
2 parents 2815e8e + 10602d4 commit 759af38

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
51) PR #3046 for #3045. Replace eval call with getattr in visitor.
2+
13
50) PR #3037 for #3036. Remove AccessType location and is_accessed_before method.
24

35
49) PR #3043. Bring back python 3.9 in the integration tests

src/psyclone/psyir/backend/visitor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ def _visit(self, node):
253253
# the class hierarchy (starting from the current class name).
254254
for method_name in possible_method_names:
255255
try:
256-
# pylint: disable=eval-used
257-
node_result = eval(f"self.{method_name}(node)")
256+
node_result = getattr(self, method_name)(node)
258257

259258
# We can only proceed to add comments if the Visitor
260259
# returned a string, otherwise we just return

0 commit comments

Comments
 (0)