Skip to content

Commit

Permalink
Parentheses aren't really necessary as and binds tighter than or
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
  • Loading branch information
Pierre-Sassoulas and cdce8p authored Jul 28, 2021
1 parent fbe70d9 commit 014c639
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pylint/checkers/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,7 @@ def visit_call(self, node):
if (
isinstance(node.func, astroid.Name)
and node.func.name in OPEN_FILES_ENCODING
) or (
isinstance(node.func, astroid.Attribute)
or isinstance(node.func, astroid.Attribute)
and node.func.attrname in OPEN_FILES_ENCODING
):
self._check_open_encoded(node)
Expand Down

0 comments on commit 014c639

Please sign in to comment.