diff options
-rw-r--r-- | ranger/core/loader.py | 6 |
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') |