config = StackedConfig()
if branch: config.add_source(branch.get_config())
else:
if public_location: config.add_source(_mod_config.LocationConfig(public_location)) config.add_source(_mod_config.GlobalConfig())
So that's indeed what my fix does, either there is a branch and the usual location/branch/global is in effect or there is a location and it's location/global or there is only global.
Meh, I've re-read the original code:
config = StackedConfig()
config. add_source( branch. get_config( ))
config. add_source( _mod_config. LocationConfig( public_ location) )
config. add_source( _mod_config. GlobalConfig( ))
if branch:
else:
if public_location:
So that's indeed what my fix does, either there is a branch and the usual location/ branch/ global is in effect or there is a location and it's location/global or there is only global.