From e9440995e0e6649bf8ea8634185d758602179a55 Mon Sep 17 00:00:00 2001 From: Jim Pivarski Date: Wed, 8 May 2024 13:47:25 -0500 Subject: [PATCH] fix: bug in PR #1189's 'ignore_duplicates' implementation (#1209) --- src/uproot/behaviors/TBranch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uproot/behaviors/TBranch.py b/src/uproot/behaviors/TBranch.py index 9d6743f9b..63f1e161a 100644 --- a/src/uproot/behaviors/TBranch.py +++ b/src/uproot/behaviors/TBranch.py @@ -1424,7 +1424,7 @@ def iteritems( if filter_name is no_filter or _filter_name_deep( filter_name, self, v ): - if ignore_duplicates and branch.name in keys_set: + if ignore_duplicates and k2 in keys_set: pass else: keys_set.add(k2)