diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-09-16 22:16:05 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-09-16 22:16:05 (GMT) |
commit | 33931ef1a6d4e665813b81a712f450a0c4b3e010 (patch) | |
tree | d23c85fddf5b1f5a88a8b9ae68a3fbc0301d3618 | |
parent | 6b06f29d095e5c99a8b495f23baff8244c624253 (diff) | |
download | cpython-33931ef1a6d4e665813b81a712f450a0c4b3e010.zip cpython-33931ef1a6d4e665813b81a712f450a0c4b3e010.tar.gz cpython-33931ef1a6d4e665813b81a712f450a0c4b3e010.tar.bz2 |
Merge Py Idle changes:
Rev 1.4 tim_one
Convert a pile of obvious "yes/no" functions to return bool
-rw-r--r-- | Lib/idlelib/ObjectBrowser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/ObjectBrowser.py b/Lib/idlelib/ObjectBrowser.py index c235a75..416be5a 100644 --- a/Lib/idlelib/ObjectBrowser.py +++ b/Lib/idlelib/ObjectBrowser.py @@ -59,7 +59,7 @@ class ObjectTreeItem(TreeItem): class InstanceTreeItem(ObjectTreeItem): def IsExpandable(self): - return 1 + return True def GetSubList(self): sublist = ObjectTreeItem.GetSubList(self) sublist.insert(0, @@ -68,7 +68,7 @@ class InstanceTreeItem(ObjectTreeItem): class ClassTreeItem(ObjectTreeItem): def IsExpandable(self): - return 1 + return True def GetSubList(self): sublist = ObjectTreeItem.GetSubList(self) if len(self.object.__bases__) == 1: |