From da9ec995f66bdb69dce7292abc4e1ca86e6a626a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 28 Dec 2010 13:26:42 +0000 Subject: Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8 * Replace "bytes" by "bytes object" in struct error messages * Document the API change in What's new in Python 3.2 * Fix test_wave * Remove also ugly implicit conversions in test_struct --- Lib/wave.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/wave.py') diff --git a/Lib/wave.py b/Lib/wave.py index b5bb105d61..2877137add 100644 --- a/Lib/wave.py +++ b/Lib/wave.py @@ -467,11 +467,11 @@ class Wave_write: self._datalength = self._nframes * self._nchannels * self._sampwidth self._form_length_pos = self._file.tell() self._file.write(struct.pack('