diff options
author | Brian Curtin <brian@python.org> | 2011-11-07 20:18:54 (GMT) |
---|---|---|
committer | Brian Curtin <brian@python.org> | 2011-11-07 20:18:54 (GMT) |
commit | c1b65d1831265534cb1613d7bf0ad7643fddb795 (patch) | |
tree | 0bc1437d42c9ab6fb3319fb03f4b74d7f3ab728d /Doc | |
parent | b0d5b5d3b2a3a9047e3fe87c118e723c5876b92a (diff) | |
download | cpython-c1b65d1831265534cb1613d7bf0ad7643fddb795.zip cpython-c1b65d1831265534cb1613d7bf0ad7643fddb795.tar.gz cpython-c1b65d1831265534cb1613d7bf0ad7643fddb795.tar.bz2 |
Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
and lutimes.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 76ad7e0..acd525b 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -872,8 +872,7 @@ as internal buffering of data. .. versionadded:: 3.3 -.. function:: futimesat(dirfd, path, (atime, mtime)) - futimesat(dirfd, path, None) +.. function:: futimesat(dirfd, path[, (atime, mtime)]) Like :func:`utime` but if *path* is relative, it is taken as relative to *dirfd*. If *path* is relative and *dirfd* is the special value :data:`AT_FDCWD`, then *path* @@ -884,12 +883,11 @@ as internal buffering of data. .. versionadded:: 3.3 -.. function:: futimens(fd, (atime_sec, atime_nsec), (mtime_sec, mtime_nsec)) - futimens(fd, None, None) +.. function:: futimens(fd[, (atime_sec, atime_nsec), (mtime_sec, mtime_nsec)]) Updates the timestamps of a file specified by the file descriptor *fd*, with nanosecond precision. - The second form sets *atime* and *mtime* to the current time. + If no second argument is given, set *atime* and *mtime* to the current time. If *atime_nsec* or *mtime_nsec* is specified as :data:`UTIME_NOW`, the corresponding timestamp is updated to the current time. If *atime_nsec* or *mtime_nsec* is specified as :data:`UTIME_OMIT`, the corresponding @@ -911,11 +909,10 @@ as internal buffering of data. .. versionadded:: 3.3 -.. function:: futimes(fd, (atime, mtime)) - futimes(fd, None) +.. function:: futimes(fd[, (atime, mtime)]) Set the access and modified time of the file specified by the file - descriptor *fd* to the given values. If the second form is used, set the + descriptor *fd* to the given values. If no second argument is used, set the access and modified times to the current time. Availability: Unix. @@ -1702,8 +1699,7 @@ Files and Directories Added support for Windows 6.0 (Vista) symbolic links. -.. function:: lutimes(path, (atime, mtime)) - lutimes(path, None) +.. function:: lutimes(path[, (atime, mtime)]) Like :func:`utime`, but if *path* is a symbolic link, it is not dereferenced. |