From: Serhiy Storchaka Date: Fri, 10 Jul 2015 19:13:40 +0000 (+0300) Subject: Corrected docstrings of audio modules. writeframes() accepts bytes, not str. X-Git-Tag: v3.5.0b4~57^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0fd7ef6bb0ddfc36337f434ae6bbfc5c0b60afa;p=thirdparty%2FPython%2Fcpython.git Corrected docstrings of audio modules. writeframes() accepts bytes, not str. --- diff --git a/Lib/aifc.py b/Lib/aifc.py index 0b4f85a30502..7ebdbeb68c10 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -121,7 +121,7 @@ but when it is set to the correct value, the header does not have to be patched up. It is best to first set all parameters, perhaps possibly the compression type, and then write audio frames using writeframesraw. -When all frames have been written, either call writeframes('') or +When all frames have been written, either call writeframes(b'') or close() to patch up the sizes in the header. Marks can be added anytime. If there are any marks, you must call close() after all frames have been written. diff --git a/Lib/sunau.py b/Lib/sunau.py index e760093dd2a9..0473e9e4ca15 100644 --- a/Lib/sunau.py +++ b/Lib/sunau.py @@ -97,7 +97,7 @@ but when it is set to the correct value, the header does not have to be patched up. It is best to first set all parameters, perhaps possibly the compression type, and then write audio frames using writeframesraw. -When all frames have been written, either call writeframes('') or +When all frames have been written, either call writeframes(b'') or close() to patch up the sizes in the header. The close() method is called automatically when the class instance is destroyed. diff --git a/Lib/wave.py b/Lib/wave.py index 8fba70f02e37..8a101e320be4 100644 --- a/Lib/wave.py +++ b/Lib/wave.py @@ -65,7 +65,7 @@ but when it is set to the correct value, the header does not have to be patched up. It is best to first set all parameters, perhaps possibly the compression type, and then write audio frames using writeframesraw. -When all frames have been written, either call writeframes('') or +When all frames have been written, either call writeframes(b'') or close() to patch up the sizes in the header. The close() method is called automatically when the class instance is destroyed.