Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b74344

Browse files
committed
...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.
1 parent ea4250d commit 0b74344

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/idlelib/ClassBrowser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ def GetIconName(self):
143143

144144
def IsExpandable(self):
145145
if self.cl:
146-
return not not self.cl.methods
146+
try:
147+
return not not self.cl.methods
148+
except AttributeError:
149+
return False
147150

148151
def GetSubList(self):
149152
if not self.cl:

0 commit comments

Comments
 (0)