From f9ff81b91909bf1bc3a6e4882be48f6e4510ffc8 Mon Sep 17 00:00:00 2001 From: Ville Laitila Date: Thu, 5 Feb 2026 01:13:11 +0200 Subject: [PATCH] fix invalid reference in rename detection --- src/sgraph/compare/renamedetector.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sgraph/compare/renamedetector.py b/src/sgraph/compare/renamedetector.py index b6f68d2..2d2ef49 100644 --- a/src/sgraph/compare/renamedetector.py +++ b/src/sgraph/compare/renamedetector.py @@ -133,8 +133,7 @@ def match_with_points(self, a_children: dict[str, SElement], b_children: dict[st rename_pairs.append(pair) matched_a.add(pair[0]) matched_b.add(pair[1]) - b_elem = b_children[pair[1]] - b_elem.addAttribute("rename_detection_similarity_points", str(p)) + pair[1].addAttribute("rename_detection_similarity_points", str(p)) else: break