commit | 96bf0d75e27fa4f221b2d670f545a63cd903a726 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Jan 22 13:29:00 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Wed Jan 22 13:29:00 2003 +0000 |
tree | 286d5199582be6ae8d531107fd1cdb0d0c4d077c | |
parent | 70c3dda2fba35f08f32163bc03315834d165cb36 [diff] [blame] |
Kurt pointed out another method affected by the changes to pyclbr.py.
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 @@ 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: