[Python-checkins] cpython (merge 3.4 -> 3.5): Corrected docstrings of audio modules. writeframes() accepts bytes, not str.

serhiy.storchaka python-checkins at python.org
Fri Jul 10 21:14:29 CEST 2015


https://hg.python.org/cpython/rev/8b75fa4ec53f
changeset:   96896:8b75fa4ec53f
branch:      3.5
parent:      96893:b4eee6356a0a
parent:      96895:938b28bfe806
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Fri Jul 10 22:13:52 2015 +0300
summary:
  Corrected docstrings of audio modules.  writeframes() accepts bytes, not str.

files:
  Lib/aifc.py  |  2 +-
  Lib/sunau.py |  2 +-
  Lib/wave.py  |  2 +-
  3 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Lib/aifc.py b/Lib/aifc.py
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -121,7 +121,7 @@
 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
--- a/Lib/sunau.py
+++ b/Lib/sunau.py
@@ -97,7 +97,7 @@
 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
--- a/Lib/wave.py
+++ b/Lib/wave.py
@@ -65,7 +65,7 @@
 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.

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list