Skip to content

Commit

Permalink
update flatten.py
Browse files Browse the repository at this point in the history
without the change in line keon#21, this will not work.
  • Loading branch information
madhab-p committed Apr 18, 2017
1 parent 979db2c commit 52b37f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion array/flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def list_flatten(l, a=None):
a = list(a) if isinstance(a, (list, tuple)) else []
for i in l:
if isinstance(i, (list, tuple)):
list_flatten(i, a)
a = list_flatten(i, a)
else:
a.append(i)
return a
Expand Down

0 comments on commit 52b37f2

Please sign in to comment.