Removed unused f-strings

- f"" -> ""

Element of #142
New year lint removal
This commit is contained in:
0x5c 2020-02-05 07:30:14 -05:00
parent 6803b058d5
commit 9ef4864d15
No known key found for this signature in database
GPG Key ID: 82039FC95E3FE970
3 changed files with 6 additions and 6 deletions

View File

@ -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"))

View File

@ -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:

View File

@ -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"))