Replace isinstance(foo, str) for py3 support
Issue #750
resolved
Replace isinstance(foo, str)
with isinstance(foo, string_types)
, given from six import string_types
.
There are 72 occurances across all fenics components according to this grep:
grep 'isinstance(.*,[ ]*str)' `find -name \*.py` | grep -v build | wc
Comments (7)
-
reporter -
reporter -
assigned issue to
-
assigned issue to
-
reporter Fixes in dijitso, ufl, ffc, fiat, dolfin (no needed in instant) are in master and/or next branches.
-
Can this now be closed?
-
reporter Found a few more, pushing asap.
-
reporter pushed to next, buildbots don't seem to work
-
reporter - changed status to resolved
- Log in to comment
Real programmers use sed.