SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the six library to support both Python 2 and 3:
import six if isinstance(value, six.string_types): handle_string(value)