diff options
author | Raymond Hettinger <python@rcn.com> | 2003-01-22 13:29:00 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-01-22 13:29:00 (GMT) |
commit | 96bf0d75e27fa4f221b2d670f545a63cd903a726 (patch) | |
tree | 286d5199582be6ae8d531107fd1cdb0d0c4d077c /Tools | |
parent | 70c3dda2fba35f08f32163bc03315834d165cb36 (diff) | |
download | cpython-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')
-rw-r--r-- | Tools/idle/ClassBrowser.py | 6 |
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: |