summaryrefslogtreecommitdiffstats
path: root/Tools/idle
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-01-22 13:29:00 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-01-22 13:29:00 (GMT)
commit96bf0d75e27fa4f221b2d670f545a63cd903a726 (patch)
tree286d5199582be6ae8d531107fd1cdb0d0c4d077c /Tools/idle
parent70c3dda2fba35f08f32163bc03315834d165cb36 (diff)
downloadcpython-96bf0d75e27fa4f221b2d670f545a63cd903a726.zip
cpython-96bf0d75e27fa4f221b2d670f545a63cd903a726.tar.gz
cpython-96bf0d75e27fa4f221b2d670f545a63cd903a726.tar.bz2
Kurt pointed out another method affected by the changes to pyclbr.py.
Diffstat (limited to 'Tools/idle')
-rw-r--r--Tools/idle/ClassBrowser.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/idle/ClassBrowser.py b/Tools/idle/ClassBrowser.py
index f01f249..2d81f9e 100644
--- a/Tools/idle/ClassBrowser.py
+++ b/Tools/idle/ClassBrowser.py
@@ -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: