add global SENTINEL object

This commit is contained in:
Mike Fährmann
2020-05-19 21:47:18 +02:00
parent c8787647ed
commit 3201fe3521
5 changed files with 8 additions and 10 deletions

View File

@@ -481,7 +481,7 @@ class SharedConfigMixin():
"""Enable sharing of config settings based on 'basecategory'"""
basecategory = ""
def config(self, key, default=None, *, sentinel=object()):
def config(self, key, default=None, *, sentinel=util.SENTINEL):
value = Extractor.config(self, key, sentinel)
return value if value is not sentinel else config.interpolate(
("extractor", self.basecategory, self.subcategory), key, default)