Improve handling of empty lists when nesting

This commit is contained in:
Daniel Rojas 2020-05-24 15:05:59 +02:00
parent f0724ede3f
commit 542aea2fe4

View File

@ -261,7 +261,9 @@ def nested(input):
for x in input:
if isinstance(x, list):
if len(x) > 0:
l.append('{' + nested(x) + '}')
n = nested(x)
if n != '':
l.append('{' + n + '}')
else:
if x is not None:
if x != '':