Skip to content

Fix Python 3 incompatibility: replace deprecated tostring() with tobytes() in tuning.py#77

Open
danieljsinclair wants to merge 1 commit intorespeaker:masterfrom
danieljsinclair:fix/python3-tostring-tobytes
Open

Fix Python 3 incompatibility: replace deprecated tostring() with tobytes() in tuning.py#77
danieljsinclair wants to merge 1 commit intorespeaker:masterfrom
danieljsinclair:fix/python3-tostring-tobytes

Conversation

@danieljsinclair
Copy link

This PR fixes a Python 3 compatibility issue in tuning.py. The code currently uses response.tostring(), which was deprecated in Python 3.2+ and removed in Python 3.9. This causes a runtime error on modern Python 3 installations.\n\nChange:\n- Replace response.tostring() with response.tobytes() in the Tuning.read() method.\n\nReference:\n- array.tostring() deprecated in Python 3.2+ (https://docs.python.org/3/library/array.html#array.array.tobytes)\n\nImpact:\n- Allows tuning.py to run on all supported Python 3 versions.

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.

1 participant