]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 9 Feb 2025 15:47:10 +0000 (16:47 +0100)
committerGitHub <noreply@github.com>
Sun, 9 Feb 2025 15:47:10 +0000 (15:47 +0000)
gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896)

Change `:exec:ValueError` to `ValueError` in `TopologicalSorter.done()` docstring
(cherry picked from commit c53730171f18b90202aa0918b3c05412222bb1ec)

Co-authored-by: Nikola Savic <76233425+nikolasavic3@users.noreply.github.com>
Lib/graphlib.py

index 636545648e12d3bd530b80127dd358e21ef5c9de..9512865a8e509e5c7ce00161d977eb711898043c 100644 (file)
@@ -154,7 +154,7 @@ class TopologicalSorter:
         This method unblocks any successor of each node in *nodes* for being returned
         in the future by a call to "get_ready".
 
-        Raises :exec:`ValueError` if any node in *nodes* has already been marked as
+        Raises ValueError if any node in *nodes* has already been marked as
         processed by a previous call to this method, if a node was not added to the
         graph by using "add" or if called without calling "prepare" previously or if
         node has not yet been returned by "get_ready".