Skip to content

Commit 4c1a709

Browse files
committed
Fix for pylint >= 2.8. Fixes #322, #323
not only variable names have changed, but also tuple values are now string instead of integers.
1 parent 58ff5fa commit 4c1a709

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pylint_django/compat.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@
2525
import pylint
2626

2727
# pylint before version 2.3 does not support load_configuration() hook.
28-
LOAD_CONFIGURATION_SUPPORTED = pylint.__pkginfo__.numversion >= (2, 3)
28+
LOAD_CONFIGURATION_SUPPORTED = False
29+
try:
30+
LOAD_CONFIGURATION_SUPPORTED = tuple(pylint.__version__.split('.')) >= ('2', '3')
31+
except AttributeError:
32+
LOAD_CONFIGURATION_SUPPORTED = pylint.__pkginfo__.numversion >= (2, 3)

0 commit comments

Comments
 (0)