Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/RemoteObjectBrowser.py @ 67816:bfa5835e10f0
#11069: fix the IDLE Stack Viewer, by not using "list" as a variable name.
Original patch by Brian Curtin, reviewed by me.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 30 Jan 2011 08:16:07 +0000 |
| parents | 2ec16b6b4d04 |
| children |
line wrap: on
line diff
--- a/Lib/idlelib/RemoteObjectBrowser.py Sun Jan 30 07:56:03 2011 +0000 +++ b/Lib/idlelib/RemoteObjectBrowser.py Sun Jan 30 08:16:07 2011 +0000 @@ -17,8 +17,8 @@ return value def _GetSubList(self): - list = self.__item._GetSubList() - return list(map(remote_object_tree_item, list)) + sub_list = self.__item._GetSubList() + return list(map(remote_object_tree_item, sub_list)) class StubObjectTreeItem: # Lives in IDLE process @@ -32,5 +32,5 @@ return value def _GetSubList(self): - list = self.sockio.remotecall(self.oid, "_GetSubList", (), {}) - return [StubObjectTreeItem(self.sockio, oid) for oid in list] + sub_list = self.sockio.remotecall(self.oid, "_GetSubList", (), {}) + return [StubObjectTreeItem(self.sockio, oid) for oid in sub_list]
