Skip to content

Commit

Permalink
Force inline table
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Nov 8, 2018
1 parent 9743d98 commit 65d7090
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def _is_tomlkit_parsed_result(parsed):
@staticmethod
def convert_outline_table(parsed):
"""Converts all outline to inline tables"""
if Project._istomlkit_parsed_result(parsed):
if Project._is_tomlkit_parsed_result(parsed):
empty_inline_table = tomlkit.inline_table
else:
empty_inline_table = toml.TomlDecoder().get_empty_inline_table
Expand Down Expand Up @@ -856,6 +856,7 @@ def write_toml(self, data, path=None):
"""Writes the given data structure out as TOML."""
if path is None:
path = self.pipfile_location
data = self.convert_outline_table(data)
try:
formatted_data = tomlkit.dumps(data).rstrip()
except Exception:
Expand Down

0 comments on commit 65d7090

Please sign in to comment.