about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-27 19:48:51 +0200
committertoonn <toonn@toonn.io>2021-08-27 19:48:51 +0200
commit7d7f31cd7238eb97ac76b11effd207689af7181a (patch)
tree36831e6a7a8d923d674faf31c5537fbe6238c5f2
parentfde846ec4f39ef9660e1a6a82b147aa3dbf38b0c (diff)
downloadranger-7d7f31cd7238eb97ac76b11effd207689af7181a.tar.gz
open23: Disable lint for py2 open
-rw-r--r--ranger/ext/open23.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/open23.py b/ranger/ext/open23.py
index 14faf32b..d5320fa3 100644
--- a/ranger/ext/open23.py
+++ b/ranger/ext/open23.py
@@ -39,8 +39,10 @@ def open23(
         )
     else:
         if buffering is None:
+            # pylint: disable=unspecified-encoding
             fobj = open(name=file, mode=mode)
         else:
+            # pylint: disable=unspecified-encoding
             fobj = open(name=file, mode=mode, buffering=buffering)
     try:
         yield fobj