From: Raymond Hettinger Date: Wed, 22 Jan 2003 13:29:00 +0000 (+0000) Subject: Kurt pointed out another method affected by the changes to pyclbr.py. X-Git-Tag: v2.3c1~2364 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96bf0d75e27fa4f221b2d670f545a63cd903a726;p=python 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 f01f249ed8..2d81f9eda0 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: