Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Updated buf to use tobytes() as tostring() is deprecated #421

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rshmhrj
Copy link

@rshmhrj rshmhrj commented May 5, 2021

Python v3.2 introduced tobytes() and kept the deprecated tostring() as an alias for tobytes()

This fix checks the current sys.version_info and chooses arr.tobytes() if the version is at least 3.2,
otherwise it uses arr.tostring()

…n 3.2

Version 3.2 introduced tobytes() and kept the deprecated tostring() as an alias for tobytes()
This fix checks the current sys.version_info and chooses arr.tobytes() if the version is at least 3.2, otherwise it uses arr.tostring()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant