Skip to content

Commit 9ec7ddd

Browse files
JelleZijlstrazippererAndrew-Zipperer
authored
[3.12] docs: typo: tiny grammar change: "pointed by" -> "pointed to by" (GH-118411) (#118504)
(cherry picked from commit a6b610a) Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com> Co-authored-by: Andrew-Zipperer <atzipperer@gmail.com>
1 parent ebef3c5 commit 9ec7ddd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Doc/library/os.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ as internal buffering of data.
921921
If *offset_src* is None, then *src* is read from the current position;
922922
respectively for *offset_dst*.
923923

924-
In Linux kernel older than 5.3, the files pointed by *src* and *dst*
924+
In Linux kernel older than 5.3, the files pointed to by *src* and *dst*
925925
must reside in the same filesystem, otherwise an :exc:`OSError` is
926926
raised with :attr:`~OSError.errno` set to :const:`errno.EXDEV`.
927927

@@ -1666,7 +1666,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
16661666
At least one of the file descriptors must refer to a pipe. If *offset_src*
16671667
is None, then *src* is read from the current position; respectively for
16681668
*offset_dst*. The offset associated to the file descriptor that refers to a
1669-
pipe must be ``None``. The files pointed by *src* and *dst* must reside in
1669+
pipe must be ``None``. The files pointed to by *src* and *dst* must reside in
16701670
the same filesystem, otherwise an :exc:`OSError` is raised with
16711671
:attr:`~OSError.errno` set to :const:`errno.EXDEV`.
16721672

Doc/library/shutil.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Directory and files operations
242242
be copied as far as the platform allows; if false or omitted, the contents
243243
and metadata of the linked files are copied to the new tree.
244244

245-
When *symlinks* is false, if the file pointed by the symlink doesn't
245+
When *symlinks* is false, if the file pointed to by the symlink doesn't
246246
exist, an exception will be added in the list of errors raised in
247247
an :exc:`Error` exception at the end of the copy process.
248248
You can set the optional *ignore_dangling_symlinks* flag to true if you
@@ -437,7 +437,7 @@ Directory and files operations
437437
called. If no *cmd* would be called, return ``None``.
438438

439439
*mode* is a permission mask passed to :func:`os.access`, by default
440-
determining if the file exists and executable.
440+
determining if the file exists and is executable.
441441

442442
When no *path* is specified, the results of :func:`os.environ` are used,
443443
returning either the "PATH" value or a fallback of :data:`os.defpath`.

Lib/pathlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ def samefile(self, other_path):
10051005
def open(self, mode='r', buffering=-1, encoding=None,
10061006
errors=None, newline=None):
10071007
"""
1008-
Open the file pointed by this path and return a file object, as
1008+
Open the file pointed to by this path and return a file object, as
10091009
the built-in open() function does.
10101010
"""
10111011
if "b" not in mode:

Lib/shutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2,
563563
If the optional symlinks flag is true, symbolic links in the
564564
source tree result in symbolic links in the destination tree; if
565565
it is false, the contents of the files pointed to by symbolic
566-
links are copied. If the file pointed by the symlink doesn't
566+
links are copied. If the file pointed to by the symlink doesn't
567567
exist, an exception will be added in the list of errors raised in
568568
an Error exception at the end of the copy process.
569569

0 commit comments

Comments
 (0)