Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 979f37a

Browse files
committed
Restore [] where default arguments are not keywords
Reverts some changes of d13fdd97cc8e.
1 parent 898d51d commit 979f37a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/curses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ the following methods:
10911091
rendition (as set by :meth:`bkgdset`) merged into them.
10921092

10931093

1094-
.. method:: window.scroll(lines=1)
1094+
.. method:: window.scroll([lines=1])
10951095

10961096
Scroll the screen or scrolling region upward by *lines* lines.
10971097

Doc/library/os.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ Files and Directories
11451145
Availability: Unix.
11461146

11471147

1148-
.. function:: mknod(filename, mode=0o600, device=0)
1148+
.. function:: mknod(filename[, mode=0o600[, device=0]])
11491149

11501150
Create a filesystem node (file, device special file or named pipe) named
11511151
*filename*. *mode* specifies both the permissions to use and the type of node

Doc/library/ossaudiodev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ The following convenience methods combine several ioctls, or one ioctl and some
277277
simple calculations.
278278

279279

280-
.. method:: oss_audio_device.setparameters(format, nchannels, samplerate, strict=False)
280+
.. method:: oss_audio_device.setparameters(format, nchannels, samplerate[, strict=False])
281281

282282
Set the key audio sampling parameters---sample format, number of channels, and
283283
sampling rate---in one method call. *format*, *nchannels*, and *samplerate*

Doc/library/select.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Kqueue Objects
285285
Create a kqueue object from a given file descriptor.
286286

287287

288-
.. method:: kqueue.control(changelist, max_events, timeout=None) -> eventlist
288+
.. method:: kqueue.control(changelist, max_events[, timeout=None]) -> eventlist
289289

290290
Low level interface to kevent
291291

0 commit comments

Comments
 (0)