lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

lcmgen python: remove py 2 cStringIO compatibility #472

Closed judfs closed 8 months ago

judfs commented 9 months ago

Python 2 support has been dropped so the try ... execpt of the py 2 module can be removed.

import cStringIO.StringIO as BytesIO was confusing pylance with Module is not callable. Therefore it couldn't determain that encode returned bytes.