aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/scripts/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'algorithms/scripts/test.py')
-rwxr-xr-xalgorithms/scripts/test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/algorithms/scripts/test.py b/algorithms/scripts/test.py
index 52acc34..7fd7c68 100755
--- a/algorithms/scripts/test.py
+++ b/algorithms/scripts/test.py
@@ -30,7 +30,7 @@ def _parse_non_negative_integer(s):
try:
n = int(s)
except ValueError:
- raise argparse.ArgumentTypeError("must be a non-negative integer: " + str(s))
+ raise argparse.ArgumentTypeError(f"must be a non-negative integer: {s}")
if n < 0:
raise argparse.ArgumentTypeError("must be a non-negative integer")
return n
@@ -40,11 +40,11 @@ def _parse_input_kind(s):
try:
return InputKind(s)
except ValueError:
- raise argparse.ArgumentTypeError("invalid input kind: " + str(s))
+ raise argparse.ArgumentTypeError(f"invalid input kind: {s}")
def _format_algorithm(codename):
- return "* {}: {}".format(codename, registry.get(codename).display_name)
+ return "* {codename}: {registry.get(codename).display_name}"
def _format_available_algorithms():