summaryrefslogtreecommitdiffstats
path: root/testsuite/ext/pylint_compat.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2017-08-17 18:09:57 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2017-08-17 23:03:42 +0200
commit3b372355f0d8e6799abc29f149ee479a0b89095e (patch)
tree5ab17102e9983e0eda9dbad904883984aa128ead /testsuite/ext/pylint_compat.py
parent92606b5f9f881cf29a7d57210c57fe6ec6dc85e8 (diff)
downloadbcfg2-3b372355f0d8e6799abc29f149ee479a0b89095e.tar.gz
bcfg2-3b372355f0d8e6799abc29f149ee479a0b89095e.tar.bz2
bcfg2-3b372355f0d8e6799abc29f149ee479a0b89095e.zip
testsuite: Bump pylint version for Python3
Diffstat (limited to 'testsuite/ext/pylint_compat.py')
-rw-r--r--testsuite/ext/pylint_compat.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/ext/pylint_compat.py b/testsuite/ext/pylint_compat.py
index 8ccfbc89b..5300df8e6 100644
--- a/testsuite/ext/pylint_compat.py
+++ b/testsuite/ext/pylint_compat.py
@@ -1,5 +1,10 @@
from pylint.__pkginfo__ import version as pylint_version
-from logilab.astng.__pkginfo__ import version as astng_version
+
+try:
+ from logilab.astng.__pkginfo__ import version as astng_version
+except ImportError:
+ from astroid.__pkginfo__ import version as astng_version
+
def register(linter):
if pylint_version < '0.24.0':