Skip to content

Extend isinstance check for any Iterable

Bitbucket Importer requested to merge bitbucket/declined-pr-86 into branch/default

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

Merge request reports