Skip to content

Commit 318f219

Browse files
docs: Add glossary term references to shutil docs (#115559)
Add glossary term references to shutil docs
1 parent 8b776e0 commit 318f219

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/shutil.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Directory and files operations
3939

4040
.. function:: copyfileobj(fsrc, fdst[, length])
4141

42-
Copy the contents of the file-like object *fsrc* to the file-like object *fdst*.
42+
Copy the contents of the :term:`file-like object <file object>` *fsrc* to the file-like object *fdst*.
4343
The integer *length*, if given, is the buffer size. In particular, a negative
4444
*length* value means to copy the data without looping over the source data in
4545
chunks; by default the data is read in chunks to avoid uncontrolled memory
@@ -52,7 +52,7 @@ Directory and files operations
5252

5353
Copy the contents (no metadata) of the file named *src* to a file named
5454
*dst* and return *dst* in the most efficient way possible.
55-
*src* and *dst* are path-like objects or path names given as strings.
55+
*src* and *dst* are :term:`path-like objects <path-like object>` or path names given as strings.
5656

5757
*dst* must be the complete target file name; look at :func:`~shutil.copy`
5858
for a copy that accepts a target directory path. If *src* and *dst*
@@ -94,7 +94,7 @@ Directory and files operations
9494
.. function:: copymode(src, dst, *, follow_symlinks=True)
9595

9696
Copy the permission bits from *src* to *dst*. The file contents, owner, and
97-
group are unaffected. *src* and *dst* are path-like objects or path names
97+
group are unaffected. *src* and *dst* are :term:`path-like objects <path-like object>` or path names
9898
given as strings.
9999
If *follow_symlinks* is false, and both *src* and *dst* are symbolic links,
100100
:func:`copymode` will attempt to modify the mode of *dst* itself (rather
@@ -113,7 +113,7 @@ Directory and files operations
113113
Copy the permission bits, last access time, last modification time, and
114114
flags from *src* to *dst*. On Linux, :func:`copystat` also copies the
115115
"extended attributes" where possible. The file contents, owner, and
116-
group are unaffected. *src* and *dst* are path-like objects or path
116+
group are unaffected. *src* and *dst* are :term:`path-like objects <path-like object>` or path
117117
names given as strings.
118118

119119
If *follow_symlinks* is false, and *src* and *dst* both

0 commit comments

Comments
 (0)