From 2ecd5d1300ee8685f742af7fa595ab44d7329f94 Mon Sep 17 00:00:00 2001 From: frostming Date: Wed, 29 Apr 2020 20:01:36 +0800 Subject: [PATCH] fix toml table construction --- pipenv/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/project.py b/pipenv/project.py index 4cb2ff9c..ee2219ef 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -790,7 +790,7 @@ class Project(object): except Exception: document = tomlkit.document() for section in ("packages", "dev-packages"): - document[section] = tomlkit.container.Table() + document[section] = tomlkit.table() # Convert things to inline tables — fancy :) for package in data.get(section, {}): if hasattr(data[section][package], "keys"):