Convert PySerial to python 3.0
steve at holdenweb.com
Wed Feb 25 05:00:56 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.
if type(port) in (str, bytes):
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list