1
0
mirror of https://github.com/KanjiVG/kanjivg.git synced 2026-04-24 14:26:10 +02:00

Another instance of has_key remained

This commit is contained in:
Ben Bullock
2024-08-05 16:25:05 +09:00
parent 2068cb94dd
commit 7385d018a0
+1 -1
View File
@@ -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()))