Skip to content

Commit d3811af

Browse files
Update Lib/configparser.py
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent bf75e89 commit d3811af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/configparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def __iter__(self):
10561056

10571057
def __str__(self):
10581058
config_dict = {
1059-
section: {key: value for key, value in self.items(section, raw=True)}
1059+
section: dict(self.items(section, raw=True))
10601060
for section in self.sections()
10611061
}
10621062
return f"<ConfigParser: {config_dict}>"

0 commit comments

Comments
 (0)