From 9ef4864d15da967380962b433f05e96a0ea3f393 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Wed, 5 Feb 2020 07:30:14 -0500 Subject: [PATCH] Removed unused f-strings - f"" -> "" Element of #142 New year lint removal --- exts/image.py | 4 ++-- exts/lookup.py | 2 +- exts/weather.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exts/image.py b/exts/image.py index d0a792c..2f818ea 100644 --- a/exts/image.py +++ b/exts/image.py @@ -38,7 +38,7 @@ class ImageCog(commands.Cog): desc = "Possible arguments are:\n" for key, img in self.bandcharts.items(): desc += f"`{key}`: {img.name}{(' ' + img.emoji if img.emoji else '')}\n" - embed.title = f"Bandplan Not Found!" + embed.title = "Bandplan Not Found!" embed.description = desc embed.colour = cmn.colours.bad await ctx.send(embed=embed) @@ -93,7 +93,7 @@ class ImageCog(commands.Cog): if resp.status != 200: raise cmn.BotHTTPError(resp) data = io.BytesIO(await resp.read()) - embed.set_image(url=f"attachment://greyline.jpg") + embed.set_image(url="attachment://greyline.jpg") await ctx.send(embed=embed, file=discord.File(data, "greyline.jpg")) diff --git a/exts/lookup.py b/exts/lookup.py index 23a9657..b79604b 100644 --- a/exts/lookup.py +++ b/exts/lookup.py @@ -44,7 +44,7 @@ class LookupCog(commands.Cog): query = query.upper() full_query = query embed = cmn.embed_factory(ctx) - embed.title = f"DXCC Info for " + embed.title = "DXCC Info for " embed.description = f"*Last Updated: {self.cty.formatted_version}*" embed.colour = cmn.colours.bad while query: diff --git a/exts/weather.py b/exts/weather.py index e7a2977..78563e1 100644 --- a/exts/weather.py +++ b/exts/weather.py @@ -37,7 +37,7 @@ class WeatherCog(commands.Cog): if resp.status != 200: raise cmn.BotHTTPError(resp) data = io.BytesIO(await resp.read()) - embed.set_image(url=f"attachment://condx.png") + embed.set_image(url="attachment://condx.png") await ctx.send(embed=embed, file=discord.File(data, "condx.png")) @commands.group(name="weather", aliases=["wttr"], category=cmn.cat.weather) @@ -84,7 +84,7 @@ See help for weather command for possible location types. Add a `-c` or `-f` to if resp.status != 200: raise cmn.BotHTTPError(resp) data = io.BytesIO(await resp.read()) - embed.set_image(url=f"attachment://wttr_forecast.png") + embed.set_image(url="attachment://wttr_forecast.png") await ctx.send(embed=embed, file=discord.File(data, "wttr_forecast.png")) @_weather_conditions.command(name="now", aliases=["n"], category=cmn.cat.weather) @@ -115,7 +115,7 @@ See help for weather command for possible location types. Add a `-c` or `-f` to if resp.status != 200: raise cmn.BotHTTPError(resp) data = io.BytesIO(await resp.read()) - embed.set_image(url=f"attachment://wttr_now.png") + embed.set_image(url="attachment://wttr_now.png") await ctx.send(embed=embed, file=discord.File(data, "wttr_now.png"))