Merge Py Idle changes:

Rev 1.4 tim_one
Convert a pile of obvious "yes/no" functions to return bool
This commit is contained in:
Kurt B. Kaiser 2002-09-16 22:16:05 +00:00
parent 6b06f29d09
commit 33931ef1a6
1 changed files with 2 additions and 2 deletions

View File

@ -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: