gh-141968: use bytearray.take_bytes in wave._byteswap (#141973)

This commit is contained in:
Cody Maloney 2025-11-26 07:45:12 -08:00 committed by GitHub
parent 2c1fdf3592
commit 9dbf77beb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -97,7 +97,7 @@ def _byteswap(data, width):
for j in range(width):
swapped_data[i + width - 1 - j] = data[i + j]
return bytes(swapped_data)
return swapped_data.take_bytes()
class _Chunk: