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

Wrap devs.keys() in list() for Python 3 compatibility #80

Merged
merged 1 commit into from
Jan 19, 2015
Merged

Wrap devs.keys() in list() for Python 3 compatibility #80

merged 1 commit into from
Jan 19, 2015

Conversation

mnaberez
Copy link
Contributor

On Python 2, devs.keys() returns a list. On Python 3, devs.keys() returns a dict_keys, which is not indexable. Wrap it in a list so this code works on 2 and 3.

davelopez01 added a commit that referenced this pull request Jan 19, 2015
Wrap devs.keys() in list() for Python 3 compatibility
@davelopez01 davelopez01 merged commit e782323 into labjack:master Jan 19, 2015
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