Skip to content

Commit 8967992

Browse files
committed
Fix pypa#6171
1 parent bf0fbd2 commit 8967992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipenv/utils/toml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ def convert_tomlkit_table(section):
4444
body = section._internal_container._body
4545
else:
4646
body = section._body
47-
for key, value in body:
47+
for index, (key, value) in enumerate(body):
4848
if not key:
4949
continue
5050
if hasattr(value, "keys") and not isinstance(
5151
value, tomlkit.items.InlineTable
5252
):
5353
table = tomlkit.inline_table()
5454
table.update(value.value)
55-
result[key.key] = table
55+
result.value._body[index] = (key, table.value)
5656
return result
5757

5858
def convert_toml_table(section):

0 commit comments

Comments
 (0)