mirror of https://github.com/python/cpython
Kurt pointed out another method affected by the changes to pyclbr.py.
This commit is contained in:
parent
70c3dda2fb
commit
96bf0d75e2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue