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"
|
return "folder"
|
||||||
|
|
||||||
def IsExpandable(self):
|
def IsExpandable(self):
|
||||||
if self.cl:
|
try:
|
||||||
return not not self.cl.methods
|
return bool(self.cl.methods)
|
||||||
|
except AttributeError:
|
||||||
|
return False
|
||||||
|
|
||||||
def GetSubList(self):
|
def GetSubList(self):
|
||||||
if not self.cl:
|
if not self.cl:
|
||||||
|
|
Loading…
Reference in New Issue