Skip to content

Commit

Permalink
Fix #6171
Browse files Browse the repository at this point in the history
  • Loading branch information
Naofal-Helal authored and oz123 committed Sep 20, 2024
1 parent 7d77700 commit d8151b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipenv/utils/toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ def convert_tomlkit_table(section):
body = section._internal_container._body
else:
body = section._body
for key, value in body:
for index, (key, value) in enumerate(body):
if not key:
continue
if hasattr(value, "keys") and not isinstance(
value, tomlkit.items.InlineTable
):
table = tomlkit.inline_table()
table.update(value.value)
result[key.key] = table
result.value._body[index] = (key, table.value)
return result

def convert_toml_table(section):
Expand Down

0 comments on commit d8151b7

Please sign in to comment.