mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Raise condition evaluation
This commit is contained in:
+2
-1
@@ -99,11 +99,12 @@ def convert_toml_outline_tables(parsed):
|
||||
table.update(value)
|
||||
section[package] = table
|
||||
|
||||
is_tomlkit_parsed = isinstance(parsed, tomlkit.container.Container)
|
||||
for section in ("packages", "dev-packages"):
|
||||
table_data = parsed.get(section, {})
|
||||
if not table_data:
|
||||
continue
|
||||
if isinstance(parsed, tomlkit.container.Container):
|
||||
if is_tomlkit_parsed:
|
||||
convert_tomlkit_table(table_data)
|
||||
else:
|
||||
convert_toml_table(table_data)
|
||||
|
||||
Reference in New Issue
Block a user