Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0fd7ef6
Commit
e0fd7ef6
authored
Jul 10, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected docstrings of audio modules. writeframes() accepts bytes, not str.
parent
e6ecea53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/aifc.py
Lib/aifc.py
+1
-1
Lib/sunau.py
Lib/sunau.py
+1
-1
Lib/wave.py
Lib/wave.py
+1
-1
No files found.
Lib/aifc.py
View file @
e0fd7ef6
...
...
@@ -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.
...
...
Lib/sunau.py
View file @
e0fd7ef6
...
...
@@ -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.
...
...
Lib/wave.py
View file @
e0fd7ef6
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment