Skip to content
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

removing has_key for python3, keeping backwards compatibility #337

Merged
merged 2 commits into from
Jul 20, 2018
Merged

removing has_key for python3, keeping backwards compatibility #337

merged 2 commits into from
Jul 20, 2018

Conversation

klintan
Copy link
Contributor

@klintan klintan commented Jul 6, 2018

Pretty straight forward, remove has_key method for dict since it is removed in python 3. Changes are still backwards compatible with python 2.x.

@jihoonl jihoonl closed this Jul 8, 2018
@jihoonl jihoonl reopened this Jul 8, 2018
@klintan
Copy link
Contributor Author

klintan commented Jul 9, 2018

Added an additional change for py3 (but keeping py2 compatibility).

I don't think it should affect performance, because it's basically just a hash-lookup instead of a generator, but it might I guess?

@jihoonl
Copy link
Member

jihoonl commented Jul 20, 2018

returning list instead of iterator but it should be fine. merging.

@jihoonl jihoonl merged commit 4663d8c into RobotWebTools:develop Jul 20, 2018
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.

None yet

2 participants