From fa4eca1745c4a00e5f659c9d1ea5056362188c5e Mon Sep 17 00:00:00 2001 From: toonn Date: Fri, 27 Aug 2021 19:45:36 +0200 Subject: rifle: Disable encoding lints Rifle can't benefit easily from open23 because it's from ranger and it would have to be reimplemented. --- ranger/ext/rifle.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit 1.4.1-2-gfad0