pylint-bot / pylint-unofficial

UNOFFICIAL playground for pylint github migration
0 stars 0 forks source link

[easy] pylint.utils.MessagesHandlerMixin.enable is really similar to pylint.utils.MessagesHandlerMixin.disable #664

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore)


The only things that are different are the obvious call of different methods (enable and enable_report vs disable and disable_report) and some flips on boolean values. Since the code is almost the same, we could try to refactor it somehow into a common method that can be used by both of them.