From a45505143f89718073b7d06c99d09c05cd0e4108 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 19 Mar 2020 11:20:05 -0700 Subject: pyupgrade: automated removal of python2 constructs using configuration: ```yaml - repo: https://github.com/asottile/pyupgrade rev: v2.1.0 hooks: - id: pyupgrade args: [--py3-plus, --keep-percent-format] exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/) ``` --- pylint/checkers/exceptions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pylint/checkers/exceptions.py') diff --git a/pylint/checkers/exceptions.py b/pylint/checkers/exceptions.py index c00e6e37a..84f68f244 100644 --- a/pylint/checkers/exceptions.py +++ b/pylint/checkers/exceptions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (c) 2006-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) # Copyright (c) 2011-2014 Google, Inc. # Copyright (c) 2012 Tim Hatch @@ -262,7 +261,7 @@ class ExceptionsChecker(checkers.BaseChecker): def open(self): self._builtin_exceptions = _builtin_exceptions() - super(ExceptionsChecker, self).open() + super().open() @utils.check_messages( "misplaced-bare-raise", -- cgit v1.2.1