about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-27 19:34:50 +0200
committertoonn <toonn@toonn.io>2021-08-27 19:34:50 +0200
commitd1bb32bfbeec41fccf7fabfd624000f117415639 (patch)
tree6851e36d4e7eb61b86b2ff3ef2354e9959e246f9
parent40ddcf310ca8398000ab730e48042efe7b80847c (diff)
downloadranger-d1bb32bfbeec41fccf7fabfd624000f117415639.tar.gz
plugin_ipc: Silence encoding lint
-rw-r--r--examples/plugin_ipc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/plugin_ipc.py b/examples/plugin_ipc.py
index c6fc60c6..0e7de3bb 100644
--- a/examples/plugin_ipc.py
+++ b/examples/plugin_ipc.py
@@ -30,6 +30,9 @@ def hook_init(fm):
 
         def ipc_reader(filepath):
             while True:
+                # The IPC encoding depends on the system locale so we can't
+                # guess here.
+                # pylint: disable=unspecified-encoding
                 with open(filepath, 'r') as fifo:
                     line = fifo.read()
                     fm.execute_console(line.strip())