diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-06-16 13:37:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 13:37:30 +0200 |
commit | e3010e6ce84116cfdedf13ad81defec7b8aa5fcc (patch) | |
tree | 1ea388de399c1388fa58370f94e1af1020a64d9b /pylint/checkers/refactoring/recommendation_checker.py | |
parent | 5c23856c67a598a26678adfe943cc6224acec0f7 (diff) | |
download | pylint-git-e3010e6ce84116cfdedf13ad81defec7b8aa5fcc.tar.gz |
Remove deprecated astroid.Index and astroid.ExtSlice nodes (#4568)
Diffstat (limited to 'pylint/checkers/refactoring/recommendation_checker.py')
-rw-r--r-- | pylint/checkers/refactoring/recommendation_checker.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pylint/checkers/refactoring/recommendation_checker.py b/pylint/checkers/refactoring/recommendation_checker.py index a5691a139..6ea387126 100644 --- a/pylint/checkers/refactoring/recommendation_checker.py +++ b/pylint/checkers/refactoring/recommendation_checker.py @@ -174,8 +174,6 @@ class RecommendationChecker(checkers.BaseChecker): continue value = subscript.slice - if isinstance(value, astroid.Index): - value = value.value if not isinstance(value, astroid.Name): continue if subscript.value.scope() != node.scope(): @@ -215,8 +213,6 @@ class RecommendationChecker(checkers.BaseChecker): continue value = subscript.slice - if isinstance(value, astroid.Index): - value = value.value if ( not isinstance(value, astroid.Name) or value.name != node.target.name @@ -256,8 +252,6 @@ class RecommendationChecker(checkers.BaseChecker): continue value = subscript.slice - if isinstance(value, astroid.Index): - value = value.value if ( not isinstance(value, astroid.Name) or value.name != node.target.name |