assistant-sdk-python icon indicating copy to clipboard operation
assistant-sdk-python copied to clipboard

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

Open rshmhrj opened this issue 4 years ago • 0 comments

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()

rshmhrj avatar May 05 '21 09:05 rshmhrj