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

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


http://hg.python.org/cpython/rev/ba99e6b0b4ba
changeset:   86020:ba99e6b0b4ba
branch:      2.7
parent:      86015:7544dc630dc5
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
@@ -296,7 +296,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