about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-02-05 19:03:41 +0100
committertoonn <toonn@toonn.io>2022-02-05 19:30:43 +0100
commit39ad2c3c56fe7725b7e635a5160cc60bacde13f8 (patch)
tree4f067a7736723a97c003b7cb94e4abea30a99112
parent4388a5e93a96cb71822424f3e172e4ddb923a4b2 (diff)
downloadranger-39ad2c3c56fe7725b7e635a5160cc60bacde13f8.tar.gz
loader: Use `in` Pythonism
-rw-r--r--ranger/core/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/loader.py b/ranger/core/loader.py
index 5c9e28a5..19611c7b 100644
--- a/ranger/core/loader.py
+++ b/ranger/core/loader.py
@@ -192,7 +192,7 @@ class CommandLoader(  # pylint: disable=too-many-instance-attributes
             try:
                 stdin.write(self.input)
             except IOError as ex:
-                if ex.errno != errno.EPIPE and ex.errno != errno.EINVAL:
+                if ex.errno not in (errno.EPIPE, errno.EINVAL):
                     raise
             stdin.close()
         if self.silent and not self.read:  # pylint: disable=too-many-nested-blocks