summaryrefslogtreecommitdiffstats
path: root/Lib/wave.py
diff options
context:
space:
mode:
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