mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Kurt pointed out another method affected by the changes to pyclbr.py.
This commit is contained in:
parent
70c3dda2fb
commit
96bf0d75e2
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue