def read_option(self, module, option): options_name = '{}_options'.format(module) options = getattr(self.config, options_name)['options'] return read_option(option, options, self.supported_options[module])
def read_option(self, option_name, default=None): return read_option(option_name, self.options, self.supported_options, default)