Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lcmgen python: remove py 2 cStringIO compatibility #472

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

judfs
Copy link
Contributor

@judfs judfs commented Oct 5, 2023

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.

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`.
@nosracd nosracd merged commit 0d6009c into lcm-proj:master Oct 13, 2023
11 checks passed
@judfs judfs deleted the no-cstringio branch April 10, 2024 18:50
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