Skip to content

Commit

Permalink
I had messed up this import from, fix remaining test
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Mar 17, 2022
1 parent 6f51bed commit 094436e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pipenv/utils/toml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pipenv.vendor.toml import decoder, TomlDecoder
from pipenv.vendor import tomlkit
import toml
import tomlkit


def cleanup_toml(tml):
Expand Down Expand Up @@ -42,8 +42,8 @@ def convert_tomlkit_table(section):

def convert_toml_table(section):
for package, value in section.items():
if hasattr(value, "keys") and not isinstance(value, decoder.InlineTableDict):
table = TomlDecoder().get_empty_inline_table()
if hasattr(value, "keys") and not isinstance(value, toml.decoder.InlineTableDict):
table = toml.TomlDecoder().get_empty_inline_table()
table.update(value)
section[package] = table

Expand Down

0 comments on commit 094436e

Please sign in to comment.