Skip to content

Commit

Permalink
Squash a couple of lines into a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Apr 19, 2019
1 parent fdc9777 commit 6f45c7f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pylint/checkers/stdlib.py
Expand Up @@ -261,11 +261,7 @@ def _check_for_preexec_fn_in_Popen(self, node):
self.add_message("subprocess-popen-preexec-fn", node=node)

def _check_for_check_kw_in_run(self, node):
if node.keywords:
kwargs = {keyword.arg: keyword.value for keyword in node.keywords}
else:
kwargs = {}

kwargs = {keyword.arg for keyword in (node.keywords or ())}
if "check" not in kwargs:
self.add_message("subprocess-run-check", node=node)

Expand Down

0 comments on commit 6f45c7f

Please sign in to comment.