"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pylint/config/config_file_parser.py" between
pylint-2.14.1.tar.gz and pylint-2.14.2.tar.gz

About: pylint analyzes Python source code looking for bugs and signs of poor quality.

config_file_parser.py  (pylint-2.14.1):config_file_parser.py  (pylint-2.14.2)
skipping to change at line 58 skipping to change at line 58
# TODO: 3.0: Remove deprecated handling of master, only allo w 'pylint.' sections # TODO: 3.0: Remove deprecated handling of master, only allo w 'pylint.' sections
warnings.warn( warnings.warn(
"The use of 'MASTER' or 'master' as configuration sectio n for pylint " "The use of 'MASTER' or 'master' as configuration sectio n for pylint "
"has been deprecated, as it's bad practice to not start sections titles with the " "has been deprecated, as it's bad practice to not start sections titles with the "
"tool name. Please use 'pylint.main' instead.", "tool name. Please use 'pylint.main' instead.",
UserWarning, UserWarning,
) )
else: else:
continue continue
for opt, value in parser[section].items(): for opt, value in parser[section].items():
value = value.replace("\n", "")
config_content[opt] = value config_content[opt] = value
options += [f"--{opt}", value] options += [f"--{opt}", value]
return config_content, options return config_content, options
@staticmethod @staticmethod
def _ini_file_with_sections(file_path: str) -> bool: def _ini_file_with_sections(file_path: str) -> bool:
"""Return whether the file uses sections.""" """Return whether the file uses sections."""
if "setup.cfg" in file_path: if "setup.cfg" in file_path:
return True return True
if "tox.ini" in file_path: if "tox.ini" in file_path:
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)