From 3679819c5351dc839b6611462a169e68bb02dd4e Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 22 Jun 2018 15:59:12 +0200 Subject: [lint] Remove unnecessary lambdas Lambdas of the form `lambda x: func(x)` are redundant. --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/ext') diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 71ec5189..2dd22772 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -137,7 +137,7 @@ async def _default_help_command(ctx, *commands : str): pages = await bot.formatter.format_help_for(ctx, command) if bot.pm_help is None: - characters = sum(map(lambda l: len(l), pages)) + characters = sum(map(len, pages)) # modify destination based on length of pages. if characters > 1000: destination = ctx.message.author -- cgit v1.2.3