Skip to content

Commit

Permalink
Fix for pylint >= 2.8. Fixes #322, #323
Browse files Browse the repository at this point in the history
not only variable names have changed, but also tuple values are now
string instead of integers.
  • Loading branch information
atodorov committed Apr 26, 2021
1 parent 58ff5fa commit 4c1a709
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pylint_django/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@
import pylint

# pylint before version 2.3 does not support load_configuration() hook.
LOAD_CONFIGURATION_SUPPORTED = pylint.__pkginfo__.numversion >= (2, 3)
LOAD_CONFIGURATION_SUPPORTED = False
try:
LOAD_CONFIGURATION_SUPPORTED = tuple(pylint.__version__.split('.')) >= ('2', '3')
except AttributeError:
LOAD_CONFIGURATION_SUPPORTED = pylint.__pkginfo__.numversion >= (2, 3)

0 comments on commit 4c1a709

Please sign in to comment.