[Python-checkins] Fix a directive in the `pathlib` docs (GH-93030)

brettcannon webhook-mailer at python.org
Fri May 20 18:52:44 EDT 2022


https://github.com/python/cpython/commit/d59b2d0441d68c63e6dbe2ec76471b54a859bcda
commit: d59b2d0441d68c63e6dbe2ec76471b54a859bcda
branch: main
author: Brett Cannon <brett at python.org>
committer: brettcannon <brett at python.org>
date: 2022-05-20T15:52:38-07:00
summary:

Fix a directive in the `pathlib` docs (GH-93030)

files:
M Doc/library/pathlib.rst

diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index cda2cc83225e0..e16097d00f60f 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -1022,7 +1022,7 @@ call fails (for example because the path doesn't exist).
    Rename this file or directory to the given *target*, and return a new Path
    instance pointing to *target*.  On Unix, if *target* exists and is a file,
    it will be replaced silently if the user has permission.
-   On Windows, if *target* exists, :data:`FileExistsError` will be raised.
+   On Windows, if *target* exists, :exc:`FileExistsError` will be raised.
    *target* can be either a string or another path object::
 
       >>> p = Path('foo')



More information about the Python-checkins mailing list