Convert PySerial to python 3.0

Seth king.seth at gmail.com
Wed Feb 25 04:46:19 CET 2009


I am just messing around trying to get pyserial to work with 3.0.

I am stuck on this line:

if type(port) in [type(''), type(u'')]


how can I convert this to 3.0? I tried changing the u to a d that did
not do anything.

Thanks



More information about the Python-list mailing list