about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-27 19:45:36 +0200
committertoonn <toonn@toonn.io>2021-08-27 19:45:36 +0200
commitfa4eca1745c4a00e5f659c9d1ea5056362188c5e (patch)
tree411740a6884db7943147bcca25633035b70de232
parentdbf2144903cd903c357324cc5dd18588a6543d31 (diff)
downloadranger-fa4eca1745c4a00e5f659c9d1ea5056362188c5e.tar.gz
rifle: Disable encoding lints
Rifle can't benefit easily from open23 because it's from ranger and it
would have to be reimplemented.
-rwxr-xr-xranger/ext/rifle.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index 0d7b5650..fbfe7c5a 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -141,6 +141,7 @@ 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:
@@ -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: