diff --git a/teamcity/pylint_reporter.py b/teamcity/pylint_reporter.py index f33597b..f25dec6 100644 --- a/teamcity/pylint_reporter.py +++ b/teamcity/pylint_reporter.py @@ -4,7 +4,11 @@ import os from pylint import reporters -from pylint.__pkginfo__ import version as pylint_version +try: + from pylint import version as pylint_version +except ImportError: + # Backwards compatibility for pylint < 2.8.0 + from pylint.__pkginfo__ import version as pylint_version from teamcity.common import get_class_fullname from teamcity import messages