From c5ce8dc40738e7ce9f1dd2d7429429dfbbca8ad5 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 17 Oct 2021 11:30:59 +0200 Subject: [PATCH] fix --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 5d69ccb471..175aad601f 100644 --- a/setup.py +++ b/setup.py @@ -4,10 +4,10 @@ class PylintIncompatiblePythonError(Exception): - def __init__(self, version_info: "sys._version_info") -> None: + def __init__(self, version_info: "sys._version_info" = sys.version_info) -> None: super().__init__( "The last version compatible with Python <= 3.6.2 is pylint '2.9.3'. " - f"You're using {'.'.join(map(str, version_info[:3]))}. " + f"You're using {'.'.join([str(v) for v in version_info[:3]])}. " "Please install pylint 2.9.3 explicitly or upgrade your python interpreter " "to at least 3.6.2. Remember that Python 3.6 end life is December 2021. " "See https://github.com/PyCQA/pylint/issues/5065 for more detail." @@ -15,6 +15,6 @@ def __init__(self, version_info: "sys._version_info") -> None: if sys.version_info < (3, 6, 2): - raise PylintIncompatiblePythonError(sys.version_info) + raise PylintIncompatiblePythonError() setup()