summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-09-16 22:16:05 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-09-16 22:16:05 (GMT)
commit33931ef1a6d4e665813b81a712f450a0c4b3e010 (patch)
treed23c85fddf5b1f5a88a8b9ae68a3fbc0301d3618 /Lib
parent6b06f29d095e5c99a8b495f23baff8244c624253 (diff)
downloadcpython-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
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/ObjectBrowser.py4
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: