diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-12 17:58:40 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-12 18:00:32 +0100 |
commit | 10135bb56441f8fd8b0a43ff383283fbe8bdd44a (patch) | |
tree | 54e897a3ff1436ec5e04e594e37b336693533c13 | |
parent | dddaf0d7209f5c41ab8ecc13785d4f1a46aaf367 (diff) | |
download | pylint-git-add-functional-tests-for-configuration.tar.gz |
Simplification in OptionManagerMixin following reviewadd-functional-tests-for-configuration
See https://github.com/PyCQA/pylint/pull/5287\#discussion_r748115210
-rw-r--r-- | pylint/config/option_manager_mixin.py | 5 |
1 files 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) |