pySSTV/pysstv
András Veres-Szentkirályi 0c09c84360 fixed Python 2 compatibility
Python 2 returns the string representation with just calling
writeframes(data) instead of writeframes(data.tostring())

/tmp/post.wav
0000 0000: 52 49 46 46 C4 AA 00 00  57 41 56 45 66 6D 74 20  RIFF.... WAVEfmt
0000 0010: 10 00 00 00 01 00 01 00  80 BB 00 00 00 77 01 00  ........ .....w..
0000 0020: 02 00 10 00 64 61 74 61  A0 AA 00 00 61 72 72 61  ....data ....arra
0000 0030: 79 28 27 68 27 2C 20 5B  30 2C 20 38 30 36 35 2C  y('h', [ 0, 8065,
0000 0040: 20 31 35 36 33 35 2C 20  32 32 32 34 32 2C 20 32   15635,  22242, 2

This change adds an escape hatch that could work for both major Python
versions, except Python 3.0 and 3.1 but those should be rare and
unsupported anyway.
2021-03-02 11:18:58 +01:00
..
examples gimp-plugin: documented pyaudio dependency 2018-04-30 16:25:09 +02:00
tests extracted method load_pickled_asset 2017-01-12 12:54:07 +01:00
__init__.py moved source to pysstv directory 2013-06-24 13:40:57 +02:00
__main__.py added image resizing to the CLI 2019-01-22 14:41:44 +01:00
color.py fixed RGB modes silently depending on RGB images 2019-07-12 21:53:45 +02:00
grayscale.py added Python six compatibility layer (#10) 2017-01-12 10:49:13 +01:00
sstv.py fixed Python 2 compatibility 2021-03-02 11:18:58 +01:00