def endSection(self, parent, type_, name, matcher): sectvalue = matcher.finish() parent.addSection(type_, name, sectvalue)