Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0fd7ef

Browse files
Corrected docstrings of audio modules. writeframes() accepts bytes, not str.
1 parent e6ecea5 commit e0fd7ef

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/aifc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
be patched up.
122122
It is best to first set all parameters, perhaps possibly the
123123
compression type, and then write audio frames using writeframesraw.
124-
When all frames have been written, either call writeframes('') or
124+
When all frames have been written, either call writeframes(b'') or
125125
close() to patch up the sizes in the header.
126126
Marks can be added anytime. If there are any marks, you must call
127127
close() after all frames have been written.

Lib/sunau.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
be patched up.
9898
It is best to first set all parameters, perhaps possibly the
9999
compression type, and then write audio frames using writeframesraw.
100-
When all frames have been written, either call writeframes('') or
100+
When all frames have been written, either call writeframes(b'') or
101101
close() to patch up the sizes in the header.
102102
The close() method is called automatically when the class instance
103103
is destroyed.

Lib/wave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
be patched up.
6666
It is best to first set all parameters, perhaps possibly the
6767
compression type, and then write audio frames using writeframesraw.
68-
When all frames have been written, either call writeframes('') or
68+
When all frames have been written, either call writeframes(b'') or
6969
close() to patch up the sizes in the header.
7070
The close() method is called automatically when the class instance
7171
is destroyed.

0 commit comments

Comments
 (0)