improve SharedConfigMixin config lookups

pull/511/head
Mike Fährmann 5 years ago
parent b5c964332b
commit ae09f87602
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -422,11 +422,8 @@ class SharedConfigMixin():
def config(self, key, default=None, *, sentinel=object()):
value = Extractor.config(self, key, sentinel)
if value is sentinel:
cat, self.category = self.category, self.basecategory
value = Extractor.config(self, key, default)
self.category = cat
return value
return value if value is not sentinel else config.interpolate(
("extractor", self.basecategory, self.subcategory), key, default)
def generate_extractors(extractor_data, symtable, classes):

Loading…
Cancel
Save