Skip to content

Conversation

@cwang2016
Copy link
Contributor


def _handle_event(self, ev):
for callback, eventIDList in self.listeners.items():
for callback, eventIDList in list(self.listeners.items()):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is a case where futurize -2 is too conservative by wrapping self.listeners.items() in a list. The list() can be removed.

@stargaser
Copy link
Contributor

Review complete. Thank you for the cleanup and renaming. There are just a few instances where futurize -2 was overly conservative in wrapping things in list() that should be removed.

…y 'future -2'. Each list() case is checked.
@cwang2016
Copy link
Contributor Author

It is great to resolve the puzzle on if applying list() to dict's keys(), items() and values(). Thanks.

@cwang2016 cwang2016 merged commit 889e117 into dev Sep 7, 2016
@cwang2016 cwang2016 deleted the DM-7326-FireflyClientPython3 branch September 7, 2016 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants