fix toml table construction

This commit is contained in:
frostming
2020-04-29 20:01:36 +08:00
parent 2f460a9128
commit 2ecd5d1300
+1 -1
View File
@@ -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"):