diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-01-23 14:13:33 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-01-24 10:16:38 +0100 |
commit | 8e5660ccd98d63b3812fe9ddbd7e59d796927225 (patch) | |
tree | cf36bed500954cab392316846f9d07fdf844ff5a /pylint/constants.py | |
parent | 68d4d4fe0accfe650a7fc32f4b988e7381e4491c (diff) | |
download | pylint-git-8e5660ccd98d63b3812fe9ddbd7e59d796927225.tar.gz |
Create a constant for version check and refactor existing one
Diffstat (limited to 'pylint/constants.py')
-rw-r--r-- | pylint/constants.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pylint/constants.py b/pylint/constants.py index 8e48bda93..660204eef 100644 --- a/pylint/constants.py +++ b/pylint/constants.py @@ -7,6 +7,10 @@ from astroid.__pkginfo__ import version as astroid_version from pylint.__pkginfo__ import version as pylint_version +PY38_PLUS = sys.version_info[:2] >= (3, 8) +PY310_PLUS = sys.version_info[:2] >= (3, 10) + + PY_EXTS = (".py", ".pyc", ".pyo", ".pyw", ".so", ".dll") MSG_STATE_CONFIDENCE = 2 |