From 9d39b135f4f84239787b0901d06a4f370a82d4bb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 4 Apr 2021 04:40:19 -0400 Subject: Modernize code to use f-strings This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`. --- examples/basic_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/basic_bot.py') diff --git a/examples/basic_bot.py b/examples/basic_bot.py index 409d4c4a..1d8928bf 100644 --- a/examples/basic_bot.py +++ b/examples/basic_bot.py @@ -61,7 +61,7 @@ async def cool(ctx): In reality this just checks if a subcommand is being invoked. """ if ctx.invoked_subcommand is None: - await ctx.send('No, {0.subcommand_passed} is not cool'.format(ctx)) + await ctx.send(f'No, {ctx.subcommand_passed} is not cool') @cool.command(name='bot') async def _bot(ctx): -- cgit v1.2.3