]> granicus.if.org Git - python/commitdiff
#11069: fix the IDLE Stack Viewer, by not using "list" as a variable name.
authorGeorg Brandl <georg@python.org>
Sun, 30 Jan 2011 08:16:07 +0000 (08:16 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 30 Jan 2011 08:16:07 +0000 (08:16 +0000)
Original patch by Brian Curtin, reviewed by me.

Lib/idlelib/RemoteObjectBrowser.py

index 3d767b32aa3fa118b6507143127d8cdb3b02aff6..8031aaeaf1f25a416edfd5ed61c390cb0e4c382d 100644 (file)
@@ -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]