From eca576c68be8299b006251eeea0f23068520ed57 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 9 Oct 2000 20:01:53 +0000 Subject: Fix by Jean-Claude Rimbault [ Bug #116271 ] -- the WAVE header was never written properly because the '4' length indicators for the 's' format characters were missing. --- Lib/wave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/wave.py b/Lib/wave.py index c8cf997..49e070f 100644 --- a/Lib/wave.py +++ b/Lib/wave.py @@ -439,7 +439,7 @@ class Wave_write: self._nframes = initlength / (self._nchannels * self._sampwidth) self._datalength = self._nframes * self._nchannels * self._sampwidth self._form_length_pos = self._file.tell() - self._file.write(struct.pack('