wraith-wireless / PyRIC

Python wireless library for Linux
http://wraith-wireless.github.io/PyRIC
Other
93 stars 51 forks source link

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

Open gfudge opened 7 years ago

gfudge commented 7 years ago

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.