parent
44a471f6ba
commit
2127be5ec5
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ def flatten(mylist, levels=None):
|
|||
for element in mylist:
|
||||
if element in (None, 'None', 'null'):
|
||||
# ignore undefined items
|
||||
break
|
||||
continue
|
||||
elif is_sequence(element):
|
||||
if levels is None:
|
||||
ret.extend(flatten(element))
|
||||
|
|
Loading…
Reference in a new issue