diff options
author | toonn <toonn@toonn.io> | 2021-07-15 21:25:42 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-07-15 21:25:42 +0200 |
commit | a7ee85f8bfadccaedf141cac4eec6e9b465bee30 (patch) | |
tree | a749d5de9e221d416d5c006f024cf86c3aa7d701 | |
parent | 63b64ad22d323020e2473e9253ce8464a23e07d9 (diff) | |
download | ranger-a7ee85f8bfadccaedf141cac4eec6e9b465bee30.tar.gz |
rifle.py: Pylint insists on no bare Popen()s
-rwxr-xr-x | ranger/ext/rifle.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 29ef3bf4..8985e232 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -85,7 +85,8 @@ except ImportError: ) as null_w: kwargs["stdin"] = null_r kwargs["stdout"] = kwargs["stderr"] = null_w - Popen(*args, **kwargs) + with Popen(*args, **kwargs): + pass os._exit(0) # pylint: disable=protected-access return True |