mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Bug #1697782: remove all remaining code that uses types.InstanceType.
This commit is contained in:
parent
b5ddcfd2a2
commit
57b39e0916
8 changed files with 10 additions and 38 deletions
|
@ -57,15 +57,6 @@ class ObjectTreeItem(TreeItem):
|
|||
sublist.append(item)
|
||||
return sublist
|
||||
|
||||
class InstanceTreeItem(ObjectTreeItem):
|
||||
def IsExpandable(self):
|
||||
return True
|
||||
def GetSubList(self):
|
||||
sublist = ObjectTreeItem.GetSubList(self)
|
||||
sublist.insert(0,
|
||||
make_objecttreeitem("__class__ =", self.object.__class__))
|
||||
return sublist
|
||||
|
||||
class ClassTreeItem(ObjectTreeItem):
|
||||
def IsExpandable(self):
|
||||
return True
|
||||
|
@ -120,7 +111,6 @@ dispatch = {
|
|||
TupleType: SequenceTreeItem,
|
||||
ListType: SequenceTreeItem,
|
||||
DictType: DictTreeItem,
|
||||
InstanceType: InstanceTreeItem,
|
||||
ClassType: ClassTreeItem,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue