diff options
author | toonn <toonn@toonn.io> | 2022-02-05 19:29:55 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-02-05 19:29:55 +0100 |
commit | 27f783ef67c2204d538cebe0022a6580c8ea9c01 (patch) | |
tree | 27e9e25385d348b1a03bfa2d585466a93dec1653 | |
parent | a9f3980ff17a905791e78c1c47b263ca41f14c0c (diff) | |
download | ranger-27f783ef67c2204d538cebe0022a6580c8ea9c01.tar.gz |
Revert "rifle: Drop disappeared Pylint options"
This reverts commit 742d02c05890c9d2477cad6138853088a28a83e8.
-rwxr-xr-x | ranger/ext/rifle.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 53800ed6..fbfe7c5a 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -141,12 +141,13 @@ except ImportError: return False if pid == 0: os.setsid() + # pylint: disable=unspecified-encoding with open(os.devnull, "r") as null_r, open( os.devnull, "w" ) as null_w: kwargs["stdin"] = null_r kwargs["stdout"] = kwargs["stderr"] = null_w - Popen(*args, **kwargs) + Popen(*args, **kwargs) # pylint: disable=consider-using-with os._exit(0) # pylint: disable=protected-access return True @@ -223,6 +224,7 @@ class Rifle(object): # pylint: disable=too-many-instance-attributes """Replace the current configuration with the one in config_file""" if config_file is None: config_file = self.config_file + # pylint: disable=unspecified-encoding with open(config_file, "r") as fobj: self.rules = [] for line in fobj: |