From 979f37afd2b7ccd77f2d43e68a1d596befa58bcd Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Tue, 22 May 2012 16:12:18 +0200 Subject: Restore [] where default arguments are not keywords Reverts some changes of d13fdd97cc8e. --- Doc/library/curses.rst | 2 +- Doc/library/os.rst | 2 +- Doc/library/ossaudiodev.rst | 2 +- Doc/library/select.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index 0b8b7c9..f31b9c5 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -1091,7 +1091,7 @@ the following methods: rendition (as set by :meth:`bkgdset`) merged into them. -.. method:: window.scroll(lines=1) +.. method:: window.scroll([lines=1]) Scroll the screen or scrolling region upward by *lines* lines. diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 8b2e582..3f43338 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1145,7 +1145,7 @@ Files and Directories Availability: Unix. -.. function:: mknod(filename, mode=0o600, device=0) +.. function:: mknod(filename[, mode=0o600[, device=0]]) Create a filesystem node (file, device special file or named pipe) named *filename*. *mode* specifies both the permissions to use and the type of node diff --git a/Doc/library/ossaudiodev.rst b/Doc/library/ossaudiodev.rst index fbbda26..cf302cc 100644 --- a/Doc/library/ossaudiodev.rst +++ b/Doc/library/ossaudiodev.rst @@ -277,7 +277,7 @@ The following convenience methods combine several ioctls, or one ioctl and some simple calculations. -.. method:: oss_audio_device.setparameters(format, nchannels, samplerate, strict=False) +.. method:: oss_audio_device.setparameters(format, nchannels, samplerate[, strict=False]) Set the key audio sampling parameters---sample format, number of channels, and sampling rate---in one method call. *format*, *nchannels*, and *samplerate* diff --git a/Doc/library/select.rst b/Doc/library/select.rst index 6f8df6e..a450ec2 100644 --- a/Doc/library/select.rst +++ b/Doc/library/select.rst @@ -285,7 +285,7 @@ Kqueue Objects Create a kqueue object from a given file descriptor. -.. method:: kqueue.control(changelist, max_events, timeout=None) -> eventlist +.. method:: kqueue.control(changelist, max_events[, timeout=None]) -> eventlist Low level interface to kevent -- cgit v0.12