From 88ee068cbd2cec08b1ab99b1dbafa22cb8f7eae8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 7 Jan 2024 19:29:01 +0000 Subject: [PATCH] fix(updatechecker): final pylint fixes (for now) --- updatechecker/updatechecker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/updatechecker/updatechecker.py b/updatechecker/updatechecker.py index 1182383..b35a14a 100644 --- a/updatechecker/updatechecker.py +++ b/updatechecker/updatechecker.py @@ -365,7 +365,7 @@ class UpdateChecker(commands.Cog): """Add repos to the whitelist""" data = await self.conf.whitelist() ds = set(data) - ns = set([r.name for r in repos]) + ns = {r.name for r in repos} ss = ds | ns await self.conf.whitelist.set(list(ss)) await ctx.send(f"Whitelist update successful: {humanize_list(tuple(map(inline, ss)))}") @@ -375,7 +375,7 @@ class UpdateChecker(commands.Cog): """Remove repos from the whitelist""" data = await self.conf.whitelist() ds = set(data) - ns = set([r.name for r in repos]) + ns = {r.name for r in repos} ss = ds - ns await self.conf.whitelist.set(list(ss)) await ctx.send( @@ -397,7 +397,7 @@ class UpdateChecker(commands.Cog): """Add repos to the blacklist""" data = await self.conf.blacklist() ds = set(data) - ns = set([r.name for r in repos]) + ns = {r.name for r in repos} ss = ds | ns await self.conf.blacklist.set(list(ss)) await ctx.send(f"Backlist update successful: {humanize_list(tuple(map(inline, ss)))}") @@ -407,7 +407,7 @@ class UpdateChecker(commands.Cog): """Remove repos from the blacklist""" data = await self.conf.blacklist() ds = set(data) - ns = set([r.name for r in repos]) + ns = {r.name for r in repos} ss = ds - ns await self.conf.blacklist.set(list(ss)) await ctx.send(