[Idle-dev] CVS: idle ClassBrowser.py,1.6,1.7
Kurt B. Kaiser
kbk@users.sourceforge.net
Sun, 19 Jan 2003 20:49:40 -0800
Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv15378
Modified Files:
ClassBrowser.py
Log Message:
...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.
Index: ClassBrowser.py
===================================================================
RCS file: /cvsroot/idlefork/idle/ClassBrowser.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** ClassBrowser.py 19 Jan 2003 02:37:41 -0000 1.6
--- ClassBrowser.py 20 Jan 2003 04:49:37 -0000 1.7
***************
*** 144,148 ****
def IsExpandable(self):
if self.cl:
! return not not self.cl.methods
def GetSubList(self):
--- 144,151 ----
def IsExpandable(self):
if self.cl:
! try:
! return not not self.cl.methods
! except AttributeError:
! return False
def GetSubList(self):