tbird20d / grabserial

Grabserial - python-based serial dump and timing program - good for embedded Linux development
GNU General Public License v2.0
195 stars 77 forks source link

Python 3.x mixed tabs and spaces #14

Closed DrASK closed 7 years ago

DrASK commented 7 years ago

I'm trying to run in Python 3.5.2, but I keep getting this error:

TabError: inconsistent use of tabs and spaces in indentation

According to PEP8 mixing tabs and spaces is disallowed.

If you are testing using 2.x could I get you to add the -tt option so the code will be compatible with Python 3?

Thanks!

tbird20d commented 7 years ago

I'll play around with this, next chance I get, and try to fix things up. -- Tim

  From: DrASK <notifications@github.com>

To: tbird20d/grabserial grabserial@noreply.github.com Sent: Saturday, September 3, 2016 10:11 AM Subject: [tbird20d/grabserial] Python 3.x mixed tabs and spaces (#14)

I'm trying to run in Python 3.5.2, but I keep getting this error:TabError: inconsistent use of tabs and spaces in indentationAccording to PEP8 mixing tabs and spaces is disallowed. If you are testing using 2.x could I get you to add the -tt option so the code will be compatible with Python 3?Thanks!— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

tbird20d commented 7 years ago

OK - see the latest code. It now runs with python -tt.

I'll try to keep an eye on this and test with -tt in the future. I added a VIM modeline to the header of the file, so that should help keeping things consistent. -- Tim