add global SENTINEL object
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user