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

rfkill_unblock attempts to write bytes type to file opened with 'w' flag #36

Open
gfudge opened this issue Jun 20, 2017 · 0 comments
Open

Comments

@gfudge
Copy link

gfudge commented Jun 20, 2017

rfkill_unblock misses a conversion to str type returned from rfkill_event (returns struct.pack()) which is bytes in python3.

Recommend implementing the check in rfkill_block rather than write to file using 'wb' flags.

cohoe added a commit to cohoe/PyRIC that referenced this issue Oct 10, 2021
oxullo pushed a commit to amdx/PyRIC that referenced this issue Jul 1, 2022
The .unblock() function fails under py3. The solution has been
implemented for .block()
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

No branches or pull requests

1 participant