

def __init__(self, config_file=None):
    self.config = DEFAULTS.copy()
    filenames = ([] if LOCAL_MODE else [GLOBAL_CONFIG, USER_CONFIG])
    if config_file:
        filenames.append(config_file)
    for filename in filenames:
        if os.path.exists(filename):
            if (filename != config_file):
                msg = 'Using global/system git-review config files (%s) is deprecated'
                print((msg % filename))
            self.config.update(load_config_file(filename))

dataset/ETHPy150Open openstack-infra/git-restack/git_restack/cmd.py Config.__init__/original