From 493ba8ef1c9b290f54f6ce1bcf90e02366c72fe6 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 30 Oct 2023 08:47:21 +0100 Subject: [PATCH] [cleanup] Remove a check that can never be reached The package metadata makes sure that the python version is at least 3.7. This package won't be installed for other python interpreters. --- pylint_django/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pylint_django/__init__.py b/pylint_django/__init__.py index 034bc4e9..c3028de4 100644 --- a/pylint_django/__init__.py +++ b/pylint_django/__init__.py @@ -1,12 +1,7 @@ """pylint_django module.""" -from __future__ import absolute_import -import sys from pylint_django import plugin -if sys.version_info < (3,): - raise DeprecationWarning("Version 0.11.1 was the last to support Python 2. Please migrate to Python 3!") - register = plugin.register # pylint: disable=invalid-name load_configuration = plugin.load_configuration # pylint: disable=invalid-name