[Python-checkins] cpython (3.3): Fix small copy-paste typo in ossaudiodev setparameters() example (found by Ken

georg.brandl python-checkins at python.org
Sun Oct 6 10:11:02 CEST 2013


http://hg.python.org/cpython/rev/9cd4d650d08b
changeset:   86018:9cd4d650d08b
branch:      3.3
parent:      86016:6c38580488e2
user:        Georg Brandl <georg at python.org>
date:        Sun Oct 06 10:11:12 2013 +0200
summary:
  Fix small copy-paste typo in ossaudiodev setparameters() example (found by Ken Housley on docs@).

files:
  Doc/library/ossaudiodev.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/ossaudiodev.rst b/Doc/library/ossaudiodev.rst
--- a/Doc/library/ossaudiodev.rst
+++ b/Doc/library/ossaudiodev.rst
@@ -302,7 +302,7 @@
 
       fmt = dsp.setfmt(fmt)
       channels = dsp.channels(channels)
-      rate = dsp.rate(channels)
+      rate = dsp.rate(rate)
 
 
 .. method:: oss_audio_device.bufsize()

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


More information about the Python-checkins mailing list