about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-07-15 21:25:42 +0200
committertoonn <toonn@toonn.io>2021-07-15 21:25:42 +0200
commita7ee85f8bfadccaedf141cac4eec6e9b465bee30 (patch)
treea749d5de9e221d416d5c006f024cf86c3aa7d701
parent63b64ad22d323020e2473e9253ce8464a23e07d9 (diff)
downloadranger-a7ee85f8bfadccaedf141cac4eec6e9b465bee30.tar.gz
rifle.py: Pylint insists on no bare Popen()s
-rwxr-xr-xranger/ext/rifle.py3
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