Skip to content

DM-7326: Adapt FireflyClient to Python 3. #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 7, 2016

Conversation

cwang2016
Copy link
Contributor

@@ -157,7 +161,7 @@ def __init__(self, host=_my_localhost, channel=None):
self.connect()

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.

2 participants