From 71ddabcb1d5b31028cca8921f6e2d3e76a0b5421 Mon Sep 17 00:00:00 2001 From: Edmond Belliveau Date: Mon, 1 Mar 2021 18:07:38 -0400 Subject: [PATCH] Removed tostring() in write_wav. Python 3.9+ has removed the tostring() methods from array.array and other primitives. --- pysstv/sstv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysstv/sstv.py b/pysstv/sstv.py index 535623a..1ffe7f3 100644 --- a/pysstv/sstv.py +++ b/pysstv/sstv.py @@ -54,7 +54,7 @@ class SSTV(object): wav.setnchannels(self.nchannels) wav.setsampwidth(self.bits // 8) wav.setframerate(self.samples_per_sec) - wav.writeframes(data.tostring()) + wav.writeframes(data) def gen_samples(self): """generates discrete samples from gen_values()