]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] docs: typo: tiny grammar change: "pointed by" -> "pointed to by" (GH-118411...
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Thu, 2 May 2024 06:01:06 +0000 (23:01 -0700)
committerGitHub <noreply@github.com>
Thu, 2 May 2024 06:01:06 +0000 (06:01 +0000)
(cherry picked from commit a6b610a94bee0e4436aee2825c14f05ec2f22f75)

Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
Co-authored-by: Andrew-Zipperer <atzipperer@gmail.com>
Doc/library/os.rst
Doc/library/shutil.rst
Lib/pathlib.py
Lib/shutil.py

index 3c295b2e8a1d1017771b3ce0459ae7134eff5517..d2f18cd86ffe081a2252ecdcc9b47527a7d3ed14 100644 (file)
@@ -921,7 +921,7 @@ as internal buffering of data.
    If *offset_src* is None, then *src* is read from the current position;
    respectively for *offset_dst*.
 
-   In Linux kernel older than 5.3, the files pointed by *src* and *dst*
+   In Linux kernel older than 5.3, the files pointed to by *src* and *dst*
    must reside in the same filesystem, otherwise an :exc:`OSError` is
    raised with :attr:`~OSError.errno` set to :const:`errno.EXDEV`.
 
@@ -1666,7 +1666,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
    At least one of the file descriptors must refer to a pipe. If *offset_src*
    is None, then *src* is read from the current position; respectively for
    *offset_dst*. The offset associated to the file descriptor that refers to a
-   pipe must be ``None``. The files pointed by *src* and *dst* must reside in
+   pipe must be ``None``. The files pointed to by *src* and *dst* must reside in
    the same filesystem, otherwise an :exc:`OSError` is raised with
    :attr:`~OSError.errno` set to :const:`errno.EXDEV`.
 
index c9d367cb7e7ff87dcbbbe7096ab2c69bb8674a91..6ef185d2178925b0cc0952b4df662efa47b75186 100644 (file)
@@ -242,7 +242,7 @@ Directory and files operations
    be copied as far as the platform allows; if false or omitted, the contents
    and metadata of the linked files are copied to the new tree.
 
-   When *symlinks* is false, if the file pointed by the symlink doesn't
+   When *symlinks* is false, if the file pointed to by the symlink doesn't
    exist, an exception will be added in the list of errors raised in
    an :exc:`Error` exception at the end of the copy process.
    You can set the optional *ignore_dangling_symlinks* flag to true if you
@@ -437,7 +437,7 @@ Directory and files operations
    called.  If no *cmd* would be called, return ``None``.
 
    *mode* is a permission mask passed to :func:`os.access`, by default
-   determining if the file exists and executable.
+   determining if the file exists and is executable.
 
    When no *path* is specified, the results of :func:`os.environ` are used,
    returning either the "PATH" value or a fallback of :data:`os.defpath`.
index bd5a096f9e3609729f58eb7a525dd85571da166d..65ff0ee1977f801efce81d13beb5c7e351eb364f 100644 (file)
@@ -1005,7 +1005,7 @@ class Path(PurePath):
     def open(self, mode='r', buffering=-1, encoding=None,
              errors=None, newline=None):
         """
-        Open the file pointed by this path and return a file object, as
+        Open the file pointed to by this path and return a file object, as
         the built-in open() function does.
         """
         if "b" not in mode:
index 3a2b6be39b7e9e6590ef80ebb8d56139135b22c6..deb9d3b867156e3fb3d6b8f5818b11adb994bacf 100644 (file)
@@ -563,7 +563,7 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2,
     If the optional symlinks flag is true, symbolic links in the
     source tree result in symbolic links in the destination tree; if
     it is false, the contents of the files pointed to by symbolic
-    links are copied. If the file pointed by the symlink doesn't
+    links are copied. If the file pointed to by the symlink doesn't
     exist, an exception will be added in the list of errors raised in
     an Error exception at the end of the copy process.