From 22f531e9c96e2f12c8fcda6b49702874ba898996 Mon Sep 17 00:00:00 2001 From: toonn Date: Fri, 16 Jul 2021 14:54:17 +0200 Subject: loader: Disable lint because of peculiar uses of open --- ranger/core/loader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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') -- cgit 1.4.1-2-gfad0