Skip to content

Commit c5ce8dc

Browse files
fix
1 parent a1633b0 commit c5ce8dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55

66
class PylintIncompatiblePythonError(Exception):
7-
def __init__(self, version_info: "sys._version_info") -> None:
7+
def __init__(self, version_info: "sys._version_info" = sys.version_info) -> None:
88
super().__init__(
99
"The last version compatible with Python <= 3.6.2 is pylint '2.9.3'. "
10-
f"You're using {'.'.join(map(str, version_info[:3]))}. "
10+
f"You're using {'.'.join([str(v) for v in version_info[:3]])}. "
1111
"Please install pylint 2.9.3 explicitly or upgrade your python interpreter "
1212
"to at least 3.6.2. Remember that Python 3.6 end life is December 2021. "
1313
"See https://github.com/PyCQA/pylint/issues/5065 for more detail."
1414
)
1515

1616

1717
if sys.version_info < (3, 6, 2):
18-
raise PylintIncompatiblePythonError(sys.version_info)
18+
raise PylintIncompatiblePythonError()
1919

2020
setup()

0 commit comments

Comments
 (0)