summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-10-11 21:26:29 +0200
committertoonn <toonn@toonn.io>2019-10-11 21:26:29 +0200
commit8927b648c90ba5b95653ae7d55a37c917275d2c2 (patch)
treec5d62f16d3b205bce66c4e8414fd213ce5bad497 /ranger
parent22a6f6d89db9d19277c44fde3752a9530277bd28 (diff)
downloadranger-8927b648c90ba5b95653ae7d55a37c917275d2c2.tar.gz
Fix long lines for pylint
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/runner.py4
-rwxr-xr-xranger/ext/rifle.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py
index efb307da..d465f070 100644
--- a/ranger/core/runner.py
+++ b/ranger/core/runner.py
@@ -214,7 +214,9 @@ class Runner(object):  # pylint: disable=too-few-public-methods
             toggle_ui = True
             context.wait = True
         if 't' in context.flags:
-            if not ('WAYLAND_DISPLAY' in os.environ or sys.platform == 'darwin' or 'DISPLAY' in os.environ):
+            if not ('WAYLAND_DISPLAY' in os.environ
+                    or sys.platform == 'darwin'
+                    or 'DISPLAY' in os.environ):
                 return self._log("Can not run with 't' flag, no display found!")
             term = get_term()
             if isinstance(action, str):
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index cdf0d729..360e6a48 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -237,7 +237,9 @@ class Rifle(object):  # pylint: disable=too-many-instance-attributes
             self._app_flags = argument
             return True
         elif function == 'X':
-            return 'WAYLAND_DISPLAY' in os.environ or sys.platform == 'darwin' or 'DISPLAY' in os.environ
+            return ('WAYLAND_DISPLAY' in os.environ
+                    or sys.platform == 'darwin'
+                    or 'DISPLAY' in os.environ)
         elif function == 'env':
             return bool(os.environ.get(argument))
         elif function == 'else':