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

Replace int_from_bytes() with builtin int.from_bytes() #549

Merged
merged 1 commit into from
Dec 18, 2020
Merged

Replace int_from_bytes() with builtin int.from_bytes() #549

merged 1 commit into from
Dec 18, 2020

Conversation

jdufresne
Copy link
Contributor

Follows upstream cryptography commit:
pyca/cryptography@5528a31

Since Python 3.2, this bytes to an int is a native feature.

Follows upstream cryptography commit:
pyca/cryptography@5528a31

Since Python 3.2, this bytes to an int is a native feature.
@jpadilla
Copy link
Owner

@jdufresne do we need to ensure any specific cryptography version?

@jdufresne
Copy link
Contributor Author

Nope.

The int.from_bytes() method is built into Python since 3.2. For docs, see: https://docs.python.org/3/library/stdtypes.html#int.from_bytes

@jpadilla jpadilla added this to the v2.0.0 milestone Dec 17, 2020
@jpadilla jpadilla merged commit bf39b44 into jpadilla:master Dec 18, 2020
@jdufresne jdufresne deleted the int-from-bytes branch December 18, 2020 00:49
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.

None yet

2 participants