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

Skip to content

Commit e751d6f

Browse files
committed
Remove the old style [...] to denote optional args and show the defaults.
1 parent c12e093 commit e751d6f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/os.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ as internal buffering of data.
872872
.. versionadded:: 3.3
873873

874874

875-
.. function:: futimesat(dirfd, path[, (atime, mtime)])
875+
.. function:: futimesat(dirfd, path, (atime, mtime)=None)
876876

877877
Like :func:`utime` but if *path* is relative, it is taken as relative to *dirfd*.
878878
If *path* is relative and *dirfd* is the special value :data:`AT_FDCWD`, then *path*
@@ -883,7 +883,7 @@ as internal buffering of data.
883883
.. versionadded:: 3.3
884884

885885

886-
.. function:: futimens(fd[, (atime_sec, atime_nsec), (mtime_sec, mtime_nsec)])
886+
.. function:: futimens(fd, (atime_sec, atime_nsec)=None, (mtime_sec, mtime_nsec)=None)
887887

888888
Updates the timestamps of a file specified by the file descriptor *fd*, with
889889
nanosecond precision.
@@ -909,7 +909,7 @@ as internal buffering of data.
909909
.. versionadded:: 3.3
910910

911911

912-
.. function:: futimes(fd[, (atime, mtime)])
912+
.. function:: futimes(fd, (atime, mtime)=None)
913913

914914
Set the access and modified time of the file specified by the file
915915
descriptor *fd* to the given values. If no second argument is used, set the
@@ -1285,7 +1285,7 @@ as internal buffering of data.
12851285
.. versionadded:: 3.3
12861286

12871287

1288-
.. function:: utimensat(dirfd, path[, atime=(atime_sec, atime_nsec), mtime=(mtime_sec, mtime_nsec), flags=0])
1288+
.. function:: utimensat(dirfd, path, atime=(atime_sec, atime_nsec), mtime=(mtime_sec, mtime_nsec), flags=0)
12891289

12901290
Updates the timestamps of a file with nanosecond precision.
12911291
The *atime* and *mtime* tuples default to ``None``, which sets those
@@ -1699,7 +1699,7 @@ Files and Directories
16991699
Added support for Windows 6.0 (Vista) symbolic links.
17001700

17011701

1702-
.. function:: lutimes(path[, (atime, mtime)])
1702+
.. function:: lutimes(path, (atime, mtime)=None)
17031703

17041704
Like :func:`utime`, but if *path* is a symbolic link, it is not
17051705
dereferenced.
@@ -2130,7 +2130,7 @@ Files and Directories
21302130
Availability: Unix, Windows.
21312131

21322132

2133-
.. function:: utime(path[, times])
2133+
.. function:: utime(path, times=None)
21342134

21352135
Set the access and modified times of the file specified by *path*. If *times*
21362136
is ``None`` or not specified, then the file's access and modified times are

0 commit comments

Comments
 (0)