Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d163c2c

Browse files
committed
#11069: fix the IDLE Stack Viewer, by not using "list" as a variable name.
Original patch by Brian Curtin, reviewed by me.
1 parent 994d380 commit d163c2c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/idlelib/RemoteObjectBrowser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def __getattr__(self, name):
1717
return value
1818

1919
def _GetSubList(self):
20-
list = self.__item._GetSubList()
21-
return list(map(remote_object_tree_item, list))
20+
sub_list = self.__item._GetSubList()
21+
return list(map(remote_object_tree_item, sub_list))
2222

2323
class StubObjectTreeItem:
2424
# Lives in IDLE process
@@ -32,5 +32,5 @@ def __getattr__(self, name):
3232
return value
3333

3434
def _GetSubList(self):
35-
list = self.sockio.remotecall(self.oid, "_GetSubList", (), {})
36-
return [StubObjectTreeItem(self.sockio, oid) for oid in list]
35+
sub_list = self.sockio.remotecall(self.oid, "_GetSubList", (), {})
36+
return [StubObjectTreeItem(self.sockio, oid) for oid in sub_list]

0 commit comments

Comments
 (0)