Skip to content

Commit 12a2c91

Browse files
Remove dead pylint 2 compat code in foreign_key_strings.py
1 parent ee3704f commit 12a2c91

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pylint_django/checkers/foreign_key_strings.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,7 @@ def open(self):
9090
# this means that Django wasn't able to configure itself using some defaults
9191
# provided (likely in a DJANGO_SETTINGS_MODULE environment variable)
9292
# so see if the user has specified a pylint option
93-
if hasattr(self, "linter"):
94-
django_settings_module = self.linter.config.django_settings_module
95-
else:
96-
# TODO: remove this no-member ignore : this is to avoid the missing `config` for pylint 3+,
97-
# and can be removed once pylint 2
98-
# pylint: disable=no-member
99-
django_settings_module = self.linter.config.django_settings_module
100-
93+
django_settings_module = self.linter.config.django_settings_module
10194
if django_settings_module is None:
10295
# we will warn the user that they haven't actually configured Django themselves
10396
self._raise_warning = True

0 commit comments

Comments
 (0)