for config_item in config_items:
parser = cls._create_parser(seed_values)
with open_ctx(config_item) as ini:
parser.read_file(ini)
config_path = config_item.path if hasattr(config_item, "path") else config_item
single_file_configs.append(_SingleFileConfig(config_path, parser))
return _ChainedConfig(single_file_configs)
After Change
for config_item in config_items:
parser = cls._create_parser(seed_values)
with open_ctx(config_item) as ini:
content = ini.read()
content_digest = sha1(content).hexdigest()
parser.read_string(content.decode("utf-8"))
config_path = config_item.path if hasattr(config_item, "path") else config_item
single_file_configs.append(_SingleFileConfig(config_path, content_digest, parser))