From 42d7cad0e5c540a6b633367c1f6214fa7fe4075c Mon Sep 17 00:00:00 2001 From: Romain J Date: Wed, 11 Nov 2020 01:29:53 +0100 Subject: [PATCH] fix(commands|Utils>source): stupid of me, the +3 was 'cause of a diff in local and github --- .pylintrc | 1 - tuxbot/cogs/Utils/utils.py | 1 - 2 files changed, 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 1bb30fc..0c31c99 100644 --- a/.pylintrc +++ b/.pylintrc @@ -12,7 +12,6 @@ disable= C0114, # missing-module-docstring C0115, # missing-class-docstring C0116, # missing-function-docstring - W0511, # fixme W0703, # broad-except R0801, # duplicate-code R0902, # too-many-instance-attributes diff --git a/tuxbot/cogs/Utils/utils.py b/tuxbot/cogs/Utils/utils.py index 1255828..b157367 100644 --- a/tuxbot/cogs/Utils/utils.py +++ b/tuxbot/cogs/Utils/utils.py @@ -229,7 +229,6 @@ class Utils(commands.Cog, name="Utils"): try: lines, start_line = inspect.getsourcelines(src) - start_line -= 3 # todo: find why this -3 is necessary except OSError: return await ctx.send( _(