summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-07-10 19:13:52 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-07-10 19:13:52 (GMT)
commit3d031e61994cf208fd1950791df16093582336cf (patch)
tree17c1984ff8b023705231811f1fbd3435c2f9e392
parentfb578f0a0556951251a73726e574d821011c0927 (diff)
parente0fd7ef6bb0ddfc36337f434ae6bbfc5c0b60afa (diff)
downloadcpython-3d031e61994cf208fd1950791df16093582336cf.zip
cpython-3d031e61994cf208fd1950791df16093582336cf.tar.gz
cpython-3d031e61994cf208fd1950791df16093582336cf.tar.bz2
Corrected docstrings of audio modules. writeframes() accepts bytes, not str.
-rw-r--r--Lib/aifc.py2
-rw-r--r--Lib/sunau.py2
-rw-r--r--Lib/wave.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index 0b4f85a..7ebdbeb 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 e760093..0473e9e 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 8fba70f..8a101e3 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.