# HG changeset patch # Parent 6177482ce6a195485b90ffaeba6336640e19ea95 Issue #23738: Use PEP 457 slash indicator in documentation diff -r 6177482ce6a1 Doc/library/fcntl.rst --- a/Doc/library/fcntl.rst Wed Sep 09 03:01:17 2015 +0000 +++ b/Doc/library/fcntl.rst Wed Sep 09 03:13:59 2015 +0000 @@ -28,7 +28,7 @@ The module defines the following functions: -.. function:: fcntl(fd, cmd, arg=0) +.. function:: fcntl(fd, cmd, arg=0, /) Perform the operation *cmd* on file descriptor *fd* (file objects providing a :meth:`~io.IOBase.fileno` method are accepted as well). The values used @@ -50,7 +50,7 @@ If the :c:func:`fcntl` fails, an :exc:`OSError` is raised. -.. function:: ioctl(fd, request, arg=0, mutate_flag=True) +.. function:: ioctl(fd, request, arg=0, mutate_flag=True, /) This function is identical to the :func:`~fcntl.fcntl` function, except that the argument handling is even more complicated. @@ -105,7 +105,7 @@ using :c:func:`fcntl`.) -.. function:: lockf(fd, cmd, len=0, start=0, whence=0) +.. function:: lockf(fd, cmd, len=0, start=0, whence=0, /) This is essentially a wrapper around the :func:`~fcntl.fcntl` locking calls. *fd* is the file descriptor of the file to lock or unlock, and *cmd* diff -r 6177482ce6a1 Doc/library/functions.rst --- a/Doc/library/functions.rst Wed Sep 09 03:01:17 2015 +0000 +++ b/Doc/library/functions.rst Wed Sep 09 03:13:59 2015 +0000 @@ -380,7 +380,7 @@ n += 1 -.. function:: eval(expression, globals=None, locals=None) +.. function:: eval(expression, globals=None, locals=None, /) The arguments are a string and optional globals and locals. If provided, *globals* must be a dictionary. If provided, *locals* can be any mapping diff -r 6177482ce6a1 Doc/library/os.rst --- a/Doc/library/os.rst Wed Sep 09 03:01:17 2015 +0000 +++ b/Doc/library/os.rst Wed Sep 09 03:13:59 2015 +0000 @@ -1208,7 +1208,7 @@ .. versionadded:: 3.3 -.. function:: get_terminal_size(fd=STDOUT_FILENO) +.. function:: get_terminal_size(fd=STDOUT_FILENO, /) Return the size of the terminal window as ``(columns, lines)``, tuple of type :class:`terminal_size`.