Extend isinstance check for any Iterable
Created originally on Bitbucket by berdario (Dario Bertini)
Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.
In my code I was writing
for row in ls:
ws.append(map(row.get, fieldnames))
But due to the existing isinstance
check, this would fail with a TypeError