From 837e72920f3ac2daeeaf8710b21b42ac0120394f Mon Sep 17 00:00:00 2001 From: Ava Date: Fri, 11 Oct 2019 22:06:52 +0300 Subject: Small code review fixes --- bot/cogs/information.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bot/cogs/information.py b/bot/cogs/information.py index b3525c6f7..b6a3c4a40 100644 --- a/bot/cogs/information.py +++ b/bot/cogs/information.py @@ -6,8 +6,7 @@ import typing from typing import Any, Mapping, Optional import discord -from discord import CategoryChannel, Colour, Embed, Member, TextChannel, VoiceChannel -from discord import Role, utils +from discord import CategoryChannel, Colour, Embed, Member, Role, TextChannel, VoiceChannel, utils from discord.ext import commands from discord.ext.commands import Bot, Cog, Context, command, group @@ -290,7 +289,7 @@ class Information(Cog): add_content('Raw message', message.content) transformer = pprint.pformat if json else self.format_fields - for field_name in 'embeds attachments'.split(): + for field_name in ('embeds', 'attachments'): data = raw_data[field_name] if not data: -- cgit v1.2.3