From 7385d018a0b333f522e98ddd20c9d5a200de22b5 Mon Sep 17 00:00:00 2001 From: Ben Bullock Date: Mon, 5 Aug 2024 16:25:05 +0900 Subject: [PATCH] Another instance of has_key remained --- kanjivg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kanjivg.py b/kanjivg.py index 39f1bc0c1..9d3099673 100644 --- a/kanjivg.py +++ b/kanjivg.py @@ -418,7 +418,7 @@ class SVGHandler(BasicHandler): elif group.part: # The group must exist already if group.part > 1: - if not self.compCpt.has_key(group.element): + if (group.element) not in self.compCpt: print("%s: Incorrectly started multi-part group" % (self.currentKanji.kId())) elif self.compCpt[group.element] != group.part - 1: print("%s: Incorrectly splitted multi-part group" % (self.currentKanji.kId()))