compare instance to basestring instead of (str, unicode)
This commit is contained in:
parent
3ced2bee38
commit
8afff42465
9 changed files with 13 additions and 13 deletions
|
|
@ -103,7 +103,7 @@ class BackendsCall(object):
|
|||
else:
|
||||
debug('%s: Called function %s returned: %r' % (backend, function, result))
|
||||
|
||||
if hasattr(result, '__iter__') and not isinstance(result, (str,unicode)):
|
||||
if hasattr(result, '__iter__') and not isinstance(result, basestring):
|
||||
# Loop on iterator
|
||||
try:
|
||||
for subresult in result:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue