From: Georg Brandl Date: Sun, 30 Jan 2011 08:16:07 +0000 (+0000) Subject: #11069: fix the IDLE Stack Viewer, by not using "list" as a variable name. X-Git-Tag: v3.2rc2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d163c2c57b10908ef787dda8dbd68db2068df692;p=python #11069: fix the IDLE Stack Viewer, by not using "list" as a variable name. Original patch by Brian Curtin, reviewed by me. --- diff --git a/Lib/idlelib/RemoteObjectBrowser.py b/Lib/idlelib/RemoteObjectBrowser.py index 3d767b32aa..8031aaeaf1 100644 --- a/Lib/idlelib/RemoteObjectBrowser.py +++ b/Lib/idlelib/RemoteObjectBrowser.py @@ -17,8 +17,8 @@ class WrappedObjectTreeItem: 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 @@ class StubObjectTreeItem: 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]