Merge pull request #2823 from aogier/bugfix/missing-f-strings-prefix
add missing f-strings prefix
This commit is contained in:
commit
718e06e6ff
2 changed files with 3 additions and 3 deletions
|
|
@ -298,7 +298,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
|
||||||
return
|
return
|
||||||
if not obj.access(self, "puppet"):
|
if not obj.access(self, "puppet"):
|
||||||
# no access
|
# 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
|
return
|
||||||
if obj.account:
|
if obj.account:
|
||||||
# object already puppeted
|
# object already puppeted
|
||||||
|
|
|
||||||
|
|
@ -874,14 +874,14 @@ class CmdSetHelp(CmdHelp):
|
||||||
if isinstance(match, HelpCategory):
|
if isinstance(match, HelpCategory):
|
||||||
warning = (
|
warning = (
|
||||||
f"'{querystr}' matches (or partially matches) the name of "
|
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 "
|
"take precedence and the category (or part of its name) *may* not "
|
||||||
"be usable for grouping help entries anymore."
|
"be usable for grouping help entries anymore."
|
||||||
)
|
)
|
||||||
elif inherits_from(match, "evennia.commands.command.Command"):
|
elif inherits_from(match, "evennia.commands.command.Command"):
|
||||||
warning = (
|
warning = (
|
||||||
f"'{querystr}' matches (or partially matches) the key/alias of "
|
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 "
|
"help entries so your help *may* be impossible to reach for those "
|
||||||
"with access to that command."
|
"with access to that command."
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue