From: Mick S. <mi...@su...> - 2019-10-09 20:44:42
|
I am updating my python code from 2.7 to 3.7, using pyownet to communicate with 1-wire. Reads and writes were strings in 2.7 but it seems they are binary in 3.7. I can get around this by appending .decode('utf-8) and .encode('utf-8) to the read and write functions, but I feel that I am making hard work of this. Is there a better way to move reads and writes to Python3? I don't understand why the change has occurred, but I guess that is not a question for this group. Thanks Mick |