Skip to content

Isinstance basestring

username-removed-71312 requested to merge isinstance-basestring into master

This replaces str with basestring in all isinstance() checks, of which there is a disturbingly large number.

Perhaps we should handle the filename/file-object distinction centrally when opening files to remove some 100+ identical isinstance() checks.

Merge request reports