summaryrefslogtreecommitdiff
path: root/postgresqleu/util/lists.py
blob: 5255b6f4ab62c42f8ec0d6bbaffa45dbb28d3f84 (plain)
1
2
3
4
5
6
7
def flatten_list(thelist):
    for i in thelist:
        if isinstance(i, list):
            for k in flatten_list(i):
                yield k
        else:
            yield i