Kaydet (Commit) d163c2c5 authored tarafından Georg Brandl's avatar Georg Brandl

#11069: fix the IDLE Stack Viewer, by not using "list" as a variable name.

Original patch by Brian Curtin, reviewed by me.
üst 994d3805
...@@ -17,8 +17,8 @@ class WrappedObjectTreeItem: ...@@ -17,8 +17,8 @@ class WrappedObjectTreeItem:
return value return value
def _GetSubList(self): def _GetSubList(self):
list = self.__item._GetSubList() sub_list = self.__item._GetSubList()
return list(map(remote_object_tree_item, list)) return list(map(remote_object_tree_item, sub_list))
class StubObjectTreeItem: class StubObjectTreeItem:
# Lives in IDLE process # Lives in IDLE process
...@@ -32,5 +32,5 @@ class StubObjectTreeItem: ...@@ -32,5 +32,5 @@ class StubObjectTreeItem:
return value return value
def _GetSubList(self): def _GetSubList(self):
list = self.sockio.remotecall(self.oid, "_GetSubList", (), {}) sub_list = self.sockio.remotecall(self.oid, "_GetSubList", (), {})
return [StubObjectTreeItem(self.sockio, oid) for oid in list] return [StubObjectTreeItem(self.sockio, oid) for oid in sub_list]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment