don't hide errors in __len__

This commit is contained in:
Darren Ranalli 2007-04-18 09:36:45 +00:00
parent aa1193a076
commit 83b5b73359

View File

@ -334,11 +334,7 @@ class FindContainers(Job):
return False
def _hasLength(self, obj):
try:
len(obj)
except:
return False
return True
return hasattr(obj, '__len__')
def _addContainerGen(self, cont, objRef):
contId = id(cont)