Kurt pointed out another method affected by the changes to pyclbr.py.

This commit is contained in:
Raymond Hettinger 2003-01-22 13:29:00 +00:00
parent 70c3dda2fb
commit 96bf0d75e2
1 changed files with 4 additions and 2 deletions

View File

@ -142,8 +142,10 @@ class ClassBrowserTreeItem(TreeItem):
return "folder"
def IsExpandable(self):
if self.cl:
return not not self.cl.methods
try:
return bool(self.cl.methods)
except AttributeError:
return False
def GetSubList(self):
if not self.cl: