mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
...and the old pyclbr.py faked Function instances with Class instances
which had empty method and super attributes. ClassBrowser.IsExpandable() could not handle the missing attributes. SF Bug 667787.
This commit is contained in:
parent
ea4250df7d
commit
0b743441a6
1 changed files with 4 additions and 1 deletions
|
@ -143,7 +143,10 @@ class ClassBrowserTreeItem(TreeItem):
|
|||
|
||||
def IsExpandable(self):
|
||||
if self.cl:
|
||||
return not not self.cl.methods
|
||||
try:
|
||||
return not not 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