mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Changes in anticipation of stricter str vs. bytes enforcement.
This commit is contained in:
parent
739e2ad64b
commit
09549f4407
9 changed files with 97 additions and 115 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue