From c778139f859c75815fdccefedf9b4133318be795 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 20 Feb 2022 08:14:45 -0500 Subject: [PATCH] style: remove pylint exclusions only needed for 2/3 --- pylintrc | 4 ---- tests/test_cmdline.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pylintrc b/pylintrc index c295e4d01..717f67a21 100644 --- a/pylintrc +++ b/pylintrc @@ -84,10 +84,6 @@ disable= # Formatting stuff superfluous-parens, bad-continuation, -# Disable while we still support Python 2: - useless-object-inheritance, - super-with-arguments, - raise-missing-from, # Messages that are noisy for now, eventually maybe we'll turn them on: invalid-name, protected-access, diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 5299a7add..a088ab8af 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -1047,7 +1047,7 @@ def command_line(self, argv): try: raise Exception("oh noes!") except: - raise _ExceptionDuringRun(*sys.exc_info()) + raise _ExceptionDuringRun(*sys.exc_info()) from None elif argv[0] == 'internalraise': raise ValueError("coverage is broken") elif argv[0] == 'exit':