mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Bump black to 20.8b1 (and reformat) (#4371)
* Bump black version * Reformat with black
This commit is contained in:
@@ -115,7 +115,7 @@ def init_events(bot, cli_flags):
|
||||
"**we highly recommend you to read the update docs at <{docs}> and "
|
||||
"make sure there is nothing else that "
|
||||
"needs to be done during the update.**"
|
||||
).format(docs="https://docs.discord.red/en/stable/update_red.html",)
|
||||
).format(docs="https://docs.discord.red/en/stable/update_red.html")
|
||||
if expected_version(current_python, py_version_req):
|
||||
installed_extras = []
|
||||
for extra, reqs in red_pkg._dep_map.items():
|
||||
@@ -142,8 +142,10 @@ def init_events(bot, cli_flags):
|
||||
if platform.system() == "Windows"
|
||||
else _("Terminal")
|
||||
)
|
||||
extra_update += '```"{python}" -m pip install -U Red-DiscordBot{package_extras}```'.format(
|
||||
python=sys.executable, package_extras=package_extras
|
||||
extra_update += (
|
||||
'```"{python}" -m pip install -U Red-DiscordBot{package_extras}```'.format(
|
||||
python=sys.executable, package_extras=package_extras
|
||||
)
|
||||
)
|
||||
|
||||
else:
|
||||
@@ -222,7 +224,7 @@ def init_events(bot, cli_flags):
|
||||
await ctx.send_help()
|
||||
elif isinstance(error, commands.ArgParserFailure):
|
||||
msg = _("`{user_input}` is not a valid value for `{command}`").format(
|
||||
user_input=error.user_input, command=error.cmd,
|
||||
user_input=error.user_input, command=error.cmd
|
||||
)
|
||||
if error.custom_help_msg:
|
||||
msg += f"\n{error.custom_help_msg}"
|
||||
|
||||
Reference in New Issue
Block a user