summaryrefslogtreecommitdiffstats
path: root/Lib/wave.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 20:40:10 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 20:40:10 (GMT)
commit09549f44076e84083cbb15dbd6da9d1a3fd6d7f1 (patch)
tree311dfe57d4e326137b0435846cd07c3d717f26d0 /Lib/wave.py
parent739e2ad64bc2a5a345723a23ca01fa6b54ba1c9f (diff)
downloadcpython-09549f44076e84083cbb15dbd6da9d1a3fd6d7f1.zip
cpython-09549f44076e84083cbb15dbd6da9d1a3fd6d7f1.tar.gz
cpython-09549f44076e84083cbb15dbd6da9d1a3fd6d7f1.tar.bz2
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/wave.py')
-rw-r--r--Lib/wave.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/wave.py b/Lib/wave.py
index e0025ec..6627bcf 100644
--- a/Lib/wave.py
+++ b/Lib/wave.py
@@ -459,7 +459,7 @@ class Wave_write:
self._write_header(datasize)
def _write_header(self, initlength):
- self._file.write('RIFF')
+ self._file.write(b'RIFF')
if not self._nframes:
self._nframes = initlength / (self._nchannels * self._sampwidth)
self._datalength = self._nframes * self._nchannels * self._sampwidth