diff --git a/pipenv/project.py b/pipenv/project.py index 3ca986c2..98ef6606 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -123,8 +123,10 @@ class Project(object): def write_toml(self, data, path=None): if path is None: path = self.pipfile_location + + formatted_data = format_toml(toml.dumps(data)) with open(path, 'w') as f: - f.write(format_toml(toml.dumps(data))) + f.write(formatted_data) @property def sources(self):