From d788df3700257c6483d3bfebdc0d232bfec07f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Th=C3=A9nault?= Date: Wed, 19 Nov 2014 09:50:28 +0100 Subject: pylint pylint --- checkers/exceptions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'checkers/exceptions.py') diff --git a/checkers/exceptions.py b/checkers/exceptions.py index 0603d8844..e8e5a5412 100644 --- a/checkers/exceptions.py +++ b/checkers/exceptions.py @@ -203,7 +203,7 @@ class ExceptionsChecker(BaseChecker): else: self.add_message( 'nonstandard-exception', node=node, - confidence=INFERENCE if has_known_bases(expr) else INFERENCE_FAILURE) + confidence=INFERENCE if has_known_bases(expr) else INFERENCE_FAILURE) else: value_found = False else: @@ -251,8 +251,8 @@ class ExceptionsChecker(BaseChecker): if (isinstance(exc, astroid.Const) and exc.value is None): if ((isinstance(handler.type, astroid.Const) and - handler.type.value is None) or - handler.type.parent_of(exc)): + handler.type.value is None) or + handler.type.parent_of(exc)): # If the exception handler catches None or # the exception component, which is None, is # defined by the entire exception handler, then -- cgit v1.2.1