diff options
author | Georg Brandl <georg@python.org> | 2011-01-30 08:16:07 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-01-30 08:16:07 (GMT) |
commit | d163c2c57b10908ef787dda8dbd68db2068df692 (patch) | |
tree | f9d5cb2f3511518e3dacdb4edc0ad6c49c1db507 /Lib | |
parent | 994d38059ada3aefa47c2c62617eee7c98d60d4b (diff) | |
download | cpython-d163c2c57b10908ef787dda8dbd68db2068df692.zip cpython-d163c2c57b10908ef787dda8dbd68db2068df692.tar.gz cpython-d163c2c57b10908ef787dda8dbd68db2068df692.tar.bz2 |
#11069: fix the IDLE Stack Viewer, by not using "list" as a variable name.
Original patch by Brian Curtin, reviewed by me.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/RemoteObjectBrowser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/RemoteObjectBrowser.py b/Lib/idlelib/RemoteObjectBrowser.py index 3d767b3..8031aae 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] |