3 ms·
If you really want to be pedantic, it should be: if isinstance(obj, basestring): So that it works with unicode in Python >= 2.3
by pufuwozu 16y ago
If you really want to be pedantic, it should be:
if isinstance(obj, basestring):
So that it works with unicode in Python >= 2.3