diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-21 11:41:25 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-21 11:41:25 (GMT) |
commit | 6e49ac24060d8eadf60111f94050258a3407af0f (patch) | |
tree | 9a67531694a0055e566dbcf037b2b95f0f51ecdb /Doc/library/shutil.rst | |
parent | 87d8200978e519dabb9ef0d1d982c17b6bf9fba9 (diff) | |
download | cpython-6e49ac24060d8eadf60111f94050258a3407af0f.zip cpython-6e49ac24060d8eadf60111f94050258a3407af0f.tar.gz cpython-6e49ac24060d8eadf60111f94050258a3407af0f.tar.bz2 |
#14804: Remove [] around optional arguments with default values
3.3 specific additions to d13fdd97cc8e.
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r-- | Doc/library/shutil.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 3b5c1bd..27d374a 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -47,7 +47,7 @@ Directory and files operations be copied. -.. function:: copyfile(src, dst[, symlinks=False]) +.. function:: copyfile(src, dst, symlinks=False) Copy the contents (no metadata) of the file named *src* to a file named *dst*. *dst* must be the complete target file name; look at @@ -67,7 +67,7 @@ Directory and files operations Added *symlinks* argument. -.. function:: copymode(src, dst[, symlinks=False]) +.. function:: copymode(src, dst, symlinks=False) Copy the permission bits from *src* to *dst*. The file contents, owner, and group are unaffected. *src* and *dst* are path names given as strings. If @@ -78,7 +78,7 @@ Directory and files operations .. versionchanged:: 3.3 Added *symlinks* argument. -.. function:: copystat(src, dst[, symlinks=False]) +.. function:: copystat(src, dst, symlinks=False) Copy the permission bits, last access time, last modification time, and flags from *src* to *dst*. The file contents, owner, and group are unaffected. *src* @@ -89,7 +89,7 @@ Directory and files operations .. versionchanged:: 3.3 Added *symlinks* argument. -.. function:: copy(src, dst[, symlinks=False])) +.. function:: copy(src, dst, symlinks=False)) Copy the file *src* to the file or directory *dst*. If *dst* is a directory, a file with the same basename as *src* is created (or overwritten) in the @@ -100,7 +100,7 @@ Directory and files operations .. versionchanged:: 3.3 Added *symlinks* argument. -.. function:: copy2(src, dst[, symlinks=False]) +.. function:: copy2(src, dst, symlinks=False) Similar to :func:`shutil.copy`, but metadata is copied as well. This is similar to the Unix command :program:`cp -p`. If *symlinks* is true, |