diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-27 17:04:27 +0000 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-27 17:04:27 +0000 |
commit | 59196526993b8d87d43d397b75437f14b48b1c11 (patch) | |
tree | a29ee4e2e5d9a1039e4d457beddb3f4efdc2cdca | |
parent | 002c5c8b653ca94a88e395ada0e2734138907969 (diff) | |
download | pylint-59196526993b8d87d43d397b75437f14b48b1c11.tar.gz |
Fix pylint warnings.
-rw-r--r-- | pylint/checkers/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index c6f6ac5..8f4eca5 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -1475,7 +1475,7 @@ class RecommandationChecker(_BasicChecker): def _is_builtin(node, function): inferred = helpers.safe_infer(node) if not inferred: - return False + return False return is_builtin_object(inferred) and inferred.name == function @check_messages('consider-using-enumerate') @@ -1520,15 +1520,15 @@ class RecommandationChecker(_BasicChecker): if subscript.slice.value.name != node.target.name: continue if iterating_object.name != subscript.value.name: - continue + continue if subscript.value.scope() != node.scope(): # Ignore this subscript if it's not in the same # scope. This means that in the body of the for # loop, another scope was created, where the same # name for the iterating object was used. - continue + continue self.add_message('consider-using-enumerate', node=node) - return + return def _is_one_arg_pos_call(call): |