msoon / PyMonsoon

Monsoon Power Monitor Python Library
MIT License
55 stars 23 forks source link

`Monsoon.reflash` does not work with Python 3 #12

Open luiscruz opened 6 years ago

luiscruz commented 6 years ago

The main problem is related with the way the .fwm file is opened. With Python 3 the file has to be opened as bytes. However this enforces other changes in the code.

The following docs might help: http://python3porting.com/problems.html#bytes-strings-and-unicode