Skip to content

start to convert goodwatch.py to python3 for #131 - #132

Open
tahnok wants to merge 1 commit into
travisgoodspeed:masterfrom
tahnok:python3_goodwatch
Open

start to convert goodwatch.py to python3 for #131#132
tahnok wants to merge 1 commit into
travisgoodspeed:masterfrom
tahnok:python3_goodwatch

Conversation

@tahnok

@tahnok tahnok commented Nov 2, 2019

Copy link
Copy Markdown
Contributor

I don't have a goodwatch to test this with, but python parses it without complaint

@travisgoodspeed

Copy link
Copy Markdown
Owner

Thanks for the PR, and email me your shipping address if you'd like to PCBs shipped your way.

This PR takes care of the print() difference, but python3-serial cannot accept strings for transactions. Instead it requires bytes, so the code fails when attempting to do transactions.

@travisgoodspeed

Copy link
Copy Markdown
Owner

We could merge this if the first line kept the parser as python2, as it helps toward compatibility but doesn't quite provide it. 98a04fa used that strategy.

@tahnok
tahnok force-pushed the python3_goodwatch branch from 3a9bf9d to 523b8f7 Compare November 3, 2019 20:10
@tahnok tahnok changed the title convert goodwatch.py to python3 for #131 start to convert goodwatch.py to python3 for #131 Nov 3, 2019
@tahnok

tahnok commented Nov 3, 2019

Copy link
Copy Markdown
Contributor Author

Thank you for the PCB offer, but I have an order in to a fab already.

I've updated to keep the parser as python2 which should make a second PR to use bytes instead of strings easier to look over

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