]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115238: Remove a redundant f-string in graphlib (#115239)
authorLuka <87486666+kyurais@users.noreply.github.com>
Sun, 1 Sep 2024 05:12:53 +0000 (09:12 +0400)
committerGitHub <noreply@github.com>
Sun, 1 Sep 2024 05:12:53 +0000 (06:12 +0100)
Lib/graphlib.py

index 636545648e12d3bd530b80127dd358e21ef5c9de..1438a5fc54b9cbfa69287bf9cc6139b7f879345c 100644 (file)
@@ -103,7 +103,7 @@ class TopologicalSorter:
         # nodes as possible before cycles block more progress
         cycle = self._find_cycle()
         if cycle:
-            raise CycleError(f"nodes are in a cycle", cycle)
+            raise CycleError("nodes are in a cycle", cycle)
 
     def get_ready(self):
         """Return a tuple of all the nodes that are ready.