From 755fc12d37da8e42d7f1b20d0f3b59ce34efa477 Mon Sep 17 00:00:00 2001 From: kyurais Date: Sat, 10 Feb 2024 15:09:33 +0400 Subject: [PATCH] Remove redundant f-string from graphlib.TopologicalSorter prepare method --- Lib/graphlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/graphlib.py b/Lib/graphlib.py index 636545648e12d3..1438a5fc54b9cb 100644 --- a/Lib/graphlib.py +++ b/Lib/graphlib.py @@ -103,7 +103,7 @@ def prepare(self): # 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.