Use f-strings in more places that were missed

This commit is contained in:
Sebastian Law authored and GitHub committed 2021-04-08 09:31:06 -04:00
1 parent 99fc950510
commit 05c123f3ab
7 files changed
+19 -18

No files matched your search

+2 -2
View File
@@ -388,7 +388,7 @@ Example: ::
@bot.command()
async def length(ctx):
await ctx.send('Your message is {} characters long.'.format(len(ctx.message.content)))
await ctx.send(f'Your message is {len(ctx.message.content)} characters long.')
How do I make a subcommand?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -405,6 +405,6 @@ Example: ::
@git.command()
async def push(ctx, remote: str, branch: str):
await ctx.send('Pushing to {} {}'.format(remote, branch))
await ctx.send(f'Pushing to {remote} {branch}')
This could then be used as ``?git push origin master``.