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

Fix Python 3 TypeError crashes by using floor division explicitly #4

Merged
merged 1 commit into from
Nov 20, 2017
Merged

Fix Python 3 TypeError crashes by using floor division explicitly #4

merged 1 commit into from
Nov 20, 2017

Conversation

davea
Copy link
Contributor

@davea davea commented Nov 19, 2017

The / operator in Python 3 returns a float, which was causing TypeErrors
when being passed to the << or >> operators.

The / operator in Python 3 returns a float, which was causing TypeErrors
when being passed to the << or >> operators.
@Gadgetoid
Copy link
Member

Thank you! The change was a little rushed out to see if the upstream bug fixed solved #3 - the jury's still out on that one, though.

@Gadgetoid Gadgetoid merged commit 1baa47f into pimoroni:master Nov 20, 2017
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