mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on
big-endian platforms. Temporary forbidden test_unseekable_incompleted_write fornot compressed 16- and 32-bit wave file on big-endian platforms.
This commit is contained in:
commit
f4fd257a02
4 changed files with 21 additions and 3 deletions
|
|
@ -6,7 +6,8 @@ import pickle
|
|||
import sys
|
||||
|
||||
def byteswap2(data):
|
||||
a = array.array('h', data)
|
||||
a = array.array('h')
|
||||
a.frombytes(data)
|
||||
a.byteswap()
|
||||
return a.tobytes()
|
||||
|
||||
|
|
@ -17,7 +18,8 @@ def byteswap3(data):
|
|||
return bytes(ba)
|
||||
|
||||
def byteswap4(data):
|
||||
a = array.array('i', data)
|
||||
a = array.array('i')
|
||||
a.frombytes(data)
|
||||
a.byteswap()
|
||||
return a.tobytes()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue