From 32ac772930e9572d870acc343ba68e559e4af3b7 Mon Sep 17 00:00:00 2001 From: Alessandro Ogier Date: Mon, 1 Aug 2022 23:46:00 +0200 Subject: [PATCH] add missing f-strings prefix --- evennia/accounts/accounts.py | 2 +- evennia/commands/default/help.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evennia/accounts/accounts.py b/evennia/accounts/accounts.py index 4b566c7238..d8509e5937 100644 --- a/evennia/accounts/accounts.py +++ b/evennia/accounts/accounts.py @@ -298,7 +298,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase): return if not obj.access(self, "puppet"): # no access - self.msg("You don't have permission to puppet '{obj.key}'.") + self.msg(f"You don't have permission to puppet '{obj.key}'.") return if obj.account: # object already puppeted diff --git a/evennia/commands/default/help.py b/evennia/commands/default/help.py index bdbc62d2ad..0f98dc2685 100644 --- a/evennia/commands/default/help.py +++ b/evennia/commands/default/help.py @@ -874,14 +874,14 @@ class CmdSetHelp(CmdHelp): if isinstance(match, HelpCategory): warning = ( f"'{querystr}' matches (or partially matches) the name of " - "help-category '{match.key}'. If you continue, your help entry will " + f"help-category '{match.key}'. If you continue, your help entry will " "take precedence and the category (or part of its name) *may* not " "be usable for grouping help entries anymore." ) elif inherits_from(match, "evennia.commands.command.Command"): warning = ( f"'{querystr}' matches (or partially matches) the key/alias of " - "Command '{match.key}'. Command-help take precedence over other " + f"Command '{match.key}'. Command-help take precedence over other " "help entries so your help *may* be impossible to reach for those " "with access to that command." )