

def __ensure_setting(self, key, default_value):
    value = default_value
    if self.app_settings.has(key):
        value = self.app_settings.get(key)
        self.debug(('Setting "%s" = %r' % (key, value)))
    else:
        self.debug(('Setting "%s" not found.  Using the default value of %r' % (key, default_value)))
    return value

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.__ensure_setting/original