Skip to content

Senml/cbor2 update. #821

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

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Conversation

iabdalkader
Copy link
Contributor

@iabdalkader iabdalkader commented Mar 6, 2024

This update deprecates the decoder and encoder module, to maintain compatibility with the CPython cbor2 on pypi. The cbor2 module should now be imported and used directly instead of the decoder/encoder modules, for example:

import cbor2
cbor2.dumps(...)

The senml library, which uses cbor2, is updated to use the new API.

Deprecate decoder and encoder modules to maintain compatibility with the
CPython cbor2 module.

Signed-off-by: iabdalkader <[email protected]>
@dpgeorge dpgeorge force-pushed the senml_cbor2_update branch from 22c0e56 to 661efa4 Compare March 19, 2024 06:30
@dpgeorge dpgeorge merged commit 661efa4 into micropython:master Mar 19, 2024
3 checks passed
@dpgeorge
Copy link
Member

Thanks, this is a good improvement, to make cbor2 match CPython.

@iabdalkader iabdalkader deleted the senml_cbor2_update branch March 19, 2024 07:23
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