Skip to content

Commit 1e26373

Browse files
committed
Python 3 compat: convert keys() to list
1 parent 8442602 commit 1e26373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipykernel/kernelbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def comm_list_request(self, stream, ident, parent):
475475

476476
# Should this be moved to ipkernel?
477477
if hasattr(self, 'comm_manager'):
478-
comm_list = self.comm_manager.comms.keys()
478+
comm_list = list(self.comm_manager.comms.keys())
479479
else:
480480
comm_list = []
481481
reply_content = dict(comm_list=comm_list)

0 commit comments

Comments
 (0)