Recognize subclasses of list types
Change-Id: I8b46d11368bf33ad073ed3b28eb2282ee70ffbe3
This commit is contained in:
@@ -79,7 +79,7 @@ class Task(object):
|
||||
six.reraise(type(self._exception), self._exception,
|
||||
self._traceback)
|
||||
|
||||
if type(self._result) == list:
|
||||
if isinstance(self._result, list):
|
||||
return meta.obj_list_to_dict(self._result)
|
||||
elif type(self._result) not in (bool, int, float, str, set,
|
||||
tuple, types.GeneratorType):
|
||||
|
||||
Reference in New Issue
Block a user