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 Py3 Incompatable str + bytes issue. #456

Merged
merged 2 commits into from
Jan 12, 2017

Conversation

FeralBytes
Copy link
Contributor

Found while using buildozer with py3 on old-toolchain as $ buildozer android debug

@FeralBytes
Copy link
Contributor Author

Change was also tested and worked on my system.

@FeralBytes
Copy link
Contributor Author

@matham fixes in accordance with your suggestion.

@matham
Copy link
Member

matham commented Jan 12, 2017

Sorry for not being explicit, but you don't need the if statement. It should always have the b prefix. The reason it works in py2 without is that it's automatically bytes. But it won't hurt having the b prefix and will reduce the complexity as you don't need the if and line duplication.

@FeralBytes
Copy link
Contributor Author

@matham Fixed as noted. Also tested and works.

@matham matham merged commit 8ddabd4 into kivy:master Jan 12, 2017
@FeralBytes
Copy link
Contributor Author

Sorry about the pep8 issue.

@matham
Copy link
Member

matham commented Jan 12, 2017

It's ok. I just didn't want to ask for another fix :D

@FeralBytes FeralBytes deleted the FeralBytes-py3-android-fix-v2 branch January 13, 2017 00:10
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