Skip to content

Commit

Permalink
python#11069: fix the IDLE Stack Viewer, by not using "list" as a var…
Browse files Browse the repository at this point in the history
…iable name.

Original patch by Brian Curtin, reviewed by me.
  • Loading branch information
birkenfeld committed Jan 30, 2011
1 parent 994d380 commit d163c2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Lib/idlelib/RemoteObjectBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def __getattr__(self, name):
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
Expand All @@ -32,5 +32,5 @@ def __getattr__(self, name):
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]

0 comments on commit d163c2c

Please sign in to comment.