name = setting.name
value = self[name]
try:
- if isinstance(setting, ConfigSetting):
- if value is not None:
- lines.append(value.dump(help=help, prefix=prefix+' '))
- continue
- elif isinstance(setting, ConfigListSetting):
+ if isinstance(setting, ConfigListSetting):
if value:
for config in value:
lines.append(
config.dump(help=help, prefix=prefix+' '))
continue
+ elif isinstance(setting, ConfigSetting):
+ if value is not None:
+ lines.append(value.dump(help=help, prefix=prefix+' '))
+ continue
value_string = setting.convert_to_text(self[name])
if help:
help_string = '\t({})'.format(setting.help())