]> granicus.if.org Git - python/commitdiff
Restore [] where default arguments are not keywords
authorHynek Schlawack <hs@ox.cx>
Tue, 22 May 2012 14:12:18 +0000 (16:12 +0200)
committerHynek Schlawack <hs@ox.cx>
Tue, 22 May 2012 14:12:18 +0000 (16:12 +0200)
Reverts some changes of d13fdd97cc8e.

Doc/library/curses.rst
Doc/library/os.rst
Doc/library/ossaudiodev.rst
Doc/library/select.rst

index 0b8b7c9455eb003d88e9667e751735de6624b3ca..f31b9c536b3409dba634fce7e0d14066776ac201 100644 (file)
@@ -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.
 
index 8b2e58237244303b1a1d898fd72667127707fd39..3f433387c8a13607d208e492f1ba3f1a6e1b24c0 100644 (file)
@@ -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
index fbbda26ca5badccc43db395ff0c4ea733f8a9183..cf302cce63320b8b86d068c4e7b9ddae192f48d2 100644 (file)
@@ -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*
index 6f8df6e7eda75bdf79c869f6e2e806107bd5886a..a450ec241a3b263bb5e3a87231303e1ecb3f1188 100644 (file)
@@ -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