diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-01 06:41:50 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-09 20:15:43 +0200 |
commit | 853e4ec1f38c48b4708437b3440cc9e191d48d02 (patch) | |
tree | fcc0c1ac004f7a55f51af75cb382fc637894bbd9 /pylint | |
parent | 0ec756419eb27dbc1c2a347e0afb0d74a6bf214d (diff) | |
download | pylint-git-853e4ec1f38c48b4708437b3440cc9e191d48d02.tar.gz |
More modular code for enable/disable in pylinter
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/lint/pylinter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index e199b5437..67431e14d 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -457,8 +457,8 @@ class PyLinter( self.option_groups = option_groups + PyLinter.option_groups self._options_methods = {"enable": self.enable, "disable": self.disable} self._bw_options_methods = { - "disable-msg": self.disable, - "enable-msg": self.enable, + "disable-msg": self._options_methods["disable"], + "enable-msg": self._options_methods["enable"], } MessagesHandlerMixIn.__init__(self) reporters.ReportsHandlerMixIn.__init__(self) |