about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-02-05 16:11:01 +0100
committertoonn <toonn@toonn.io>2022-02-05 16:11:01 +0100
commit742d02c05890c9d2477cad6138853088a28a83e8 (patch)
tree26209114f7974acca0428862fab90f93a32fd6ca /ranger
parent90380564ca41429771441f1e3cb3cc606ca5e101 (diff)
downloadranger-742d02c05890c9d2477cad6138853088a28a83e8.tar.gz
rifle: Drop disappeared Pylint options
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/ext/rifle.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index fbfe7c5a..53800ed6 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -141,13 +141,12 @@ 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)  # pylint: disable=consider-using-with
+                Popen(*args, **kwargs)
             os._exit(0)  # pylint: disable=protected-access
         return True
 
@@ -224,7 +223,6 @@ 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: