about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-07-16 14:54:17 +0200
committertoonn <toonn@toonn.io>2021-07-20 23:17:45 +0200
commit22f531e9c96e2f12c8fcda6b49702874ba898996 (patch)
tree9ff3f2dd402adb0f34b09a3e5e89aeec45010970
parent06bafc4279560a3d114b2999a9a07e68f8f8325c (diff)
downloadranger-22f531e9c96e2f12c8fcda6b49702874ba898996.tar.gz
loader: Disable lint because of peculiar uses of open
-rw-r--r--ranger/core/loader.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/core/loader.py b/ranger/core/loader.py
index dcee568a..ec94b049 100644
--- a/ranger/core/loader.py
+++ b/ranger/core/loader.py
@@ -170,7 +170,11 @@ class CommandLoader(  # pylint: disable=too-many-instance-attributes
         self.kill_on_pause = kill_on_pause
         self.popenArgs = popenArgs  # pylint: disable=invalid-name
 
-    def generate(self):  # pylint: disable=too-many-branches,too-many-statements
+    def generate(self):
+        # pylint: disable=too-many-branches,too-many-statements
+        # TODO: Check whether we can afford to wait for processes and use a
+        #       with-statement for Popen.
+        # pylint: disable=consider-using-with
         popenargs = {} if self.popenArgs is None else self.popenArgs
         popenargs['stdout'] = popenargs['stderr'] = PIPE
         popenargs['stdin'] = PIPE if self.input else open(os.devnull, 'r')