Skip to content

(u)binascii: better python3 compatibility#788

Merged
tannewt merged 3 commits intoadafruit:masterfrom
jepler:binascii-py3
May 2, 2018
Merged

(u)binascii: better python3 compatibility#788
tannewt merged 3 commits intoadafruit:masterfrom
jepler:binascii-py3

Conversation

@jepler
Copy link

@jepler jepler commented May 1, 2018

This improves the python3 compatibility of the 'ubinascii' module as it relates to treatment of unicode (not bytes) inputs and aliases it as 'binascii'. It adds additional tests for bytes vs unicode behavior.

jepler added 2 commits April 30, 2018 20:06
.. some of these tests currently fail, but a subsequent commit will
fix them.
…lity

.. this maybe should be subject to MICROPY_CPYTHON_COMPAT, except that
is not defined in the main circuitpython ports so it would be a change
that makes no difference.
@jepler jepler changed the title Binascii py3 (u)binascii: better python3 compatibility May 1, 2018
@tannewt tannewt added this to the 3.0 milestone May 1, 2018
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One quick change and then it looks good.

py/objmodule.c Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets remove the MicroPython version so folks don't use it and break compatibility.

@tannewt
Copy link
Member

tannewt commented May 2, 2018

Please comment on a PR when you want to me to take another look. Thanks for the quick fix!

@tannewt tannewt merged commit 3d36f63 into adafruit:master May 2, 2018
@jepler jepler deleted the binascii-py3 branch November 3, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cpython api modules from cpython enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants