From 1ba8ebc7995ee18e66d6f3910147187763eea5fe Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Tue, 4 Jun 2024 13:51:54 -0700 Subject: [PATCH] fix f-string issue < 3.12 --- django_routines/management/commands/routine.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django_routines/management/commands/routine.py b/django_routines/management/commands/routine.py index df8eee0..79dcc6f 100644 --- a/django_routines/management/commands/routine.py +++ b/django_routines/management/commands/routine.py @@ -180,7 +180,10 @@ def _list(self) -> None: ruler = f"[underline]{' ' * width}[/underline]\n" if use_rich else "-" * width cmd_strings = "\n".join(command_strings) cmd_strings = f"{'[bright]' if use_rich else ''}{cmd_strings}{'[/bright]' if use_rich else ''}" - help_txt = f"\b\n{routine.help_text}\n{ruler}\b\n{'' if use_rich else '\b\n'}{cmd_strings}\n" + lb = "\b\n" + help_txt = ( + f"{lb}{routine.help_text}\n{ruler}{lb}{'' if use_rich else lb}{cmd_strings}\n" + ) grp = Command.group( help=help_txt, short_help=routine.help_text, invoke_without_command=True )(locals()[name])