From 10135bb56441f8fd8b0a43ff383283fbe8bdd44a Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 12 Nov 2021 17:58:40 +0100 Subject: Simplification in OptionManagerMixin following review See https://github.com/PyCQA/pylint/pull/5287\#discussion_r748115210 --- pylint/config/option_manager_mixin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pylint/config/option_manager_mixin.py b/pylint/config/option_manager_mixin.py index 924998e77..3595d466d 100644 --- a/pylint/config/option_manager_mixin.py +++ b/pylint/config/option_manager_mixin.py @@ -271,9 +271,8 @@ class OptionsManagerMixIn: use_config_file = config_file and os.path.exists(config_file) if use_config_file: - mod_name = config_file - self.current_name = mod_name - self.set_current_module(mod_name) + self.current_name = config_file + self.set_current_module(self.current_name) parser = self.cfgfile_parser if config_file.endswith(".toml"): self._parse_toml(config_file, parser) -- cgit v1.2.1