diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-23 20:26:01 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-23 20:26:01 (GMT) |
| commit | 3062c9a6c87ff9b480d1eea960efbfc604e4b157 (patch) | |
| tree | b31b2fe4839d47d9ca54f171d6adf518cfbffa9d /Lib/test/audiotests.py | |
| parent | 2b38fc187c2a764b7608cd262de5a2777a77f4c8 (diff) | |
| download | cpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.zip cpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.tar.gz cpython-3062c9a6c87ff9b480d1eea960efbfc604e4b157.tar.bz2 | |
Issue #19641: Added the audioop.byteswap() function to convert big-endian
samples to little-endian and vice versa.
Diffstat (limited to 'Lib/test/audiotests.py')
| -rw-r--r-- | Lib/test/audiotests.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Lib/test/audiotests.py b/Lib/test/audiotests.py index 7581fe2e..b7497ce 100644 --- a/Lib/test/audiotests.py +++ b/Lib/test/audiotests.py @@ -5,24 +5,6 @@ import io import pickle import sys -def byteswap2(data): - a = array.array('h') - a.frombytes(data) - a.byteswap() - return a.tobytes() - -def byteswap3(data): - ba = bytearray(data) - ba[::3] = data[2::3] - ba[2::3] = data[::3] - return bytes(ba) - -def byteswap4(data): - a = array.array('i') - a.frombytes(data) - a.byteswap() - return a.tobytes() - class UnseekableIO(io.FileIO): def tell(self): raise io.UnsupportedOperation |
