diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-04-04 22:55:58 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-04-04 22:55:58 (GMT) |
commit | bc0e9108261693b6278687f4fb4709ff76c2e543 (patch) | |
tree | afef5d4734034ed0268950cf06321aefd4154ff3 /Tools/idle/ObjectBrowser.py | |
parent | 2f486b7fa6451b790b154e6e4751239d69d46952 (diff) | |
download | cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.zip cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.gz cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.bz2 |
Convert a pile of obvious "yes/no" functions to return bool.
Diffstat (limited to 'Tools/idle/ObjectBrowser.py')
-rw-r--r-- | Tools/idle/ObjectBrowser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/idle/ObjectBrowser.py b/Tools/idle/ObjectBrowser.py index c235a75..416be5a 100644 --- a/Tools/idle/ObjectBrowser.py +++ b/Tools/idle/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: |