"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pylint/config/callback_actions.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.

callback_actions.py  (pylint-2.14.1):callback_actions.py  (pylint-2.14.2)
skipping to change at line 364 skipping to change at line 364
def _call( def _call(
self, self,
xabling_function: Callable[[str], None], xabling_function: Callable[[str], None],
values: str | Sequence[Any] | None, values: str | Sequence[Any] | None,
option_string: str | None, option_string: str | None,
): ):
assert isinstance(values, (tuple, list)) assert isinstance(values, (tuple, list))
for msgid in utils._check_csv(values[0]): for msgid in utils._check_csv(values[0]):
try: try:
xabling_function(msgid) xabling_function(msgid)
except exceptions.DeletedMessageError as e: except (
exceptions.DeletedMessageError,
exceptions.MessageBecameExtensionError,
) as e:
self.linter._stashed_messages[ self.linter._stashed_messages[
(self.linter.current_name, "useless-option-value") (self.linter.current_name, "useless-option-value")
].append((option_string, str(e))) ].append((option_string, str(e)))
except exceptions.UnknownMessageError: except exceptions.UnknownMessageError:
self.linter._stashed_messages[ self.linter._stashed_messages[
(self.linter.current_name, "unknown-option-value") (self.linter.current_name, "unknown-option-value")
].append((option_string, msgid)) ].append((option_string, msgid))
@abc.abstractmethod @abc.abstractmethod
def __call__( def __call__(
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

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