diff options
author | toonn <toonn@toonn.io> | 2022-02-05 19:03:54 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-02-05 19:30:53 +0100 |
commit | c8d21c6a9e33aacf936c52e8f400bd909b043e1a (patch) | |
tree | 3e64b8cf4b1b6a23995c103bbb1bf3e3caf92c18 | |
parent | 39ad2c3c56fe7725b7e635a5160cc60bacde13f8 (diff) | |
download | ranger-c8d21c6a9e33aacf936c52e8f400bd909b043e1a.tar.gz |
img_display: Use `in` Pythonism
-rw-r--r-- | ranger/ext/img_display.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 43e4203d..61e10f96 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -643,7 +643,7 @@ class KittyImageDisplayer(ImageDisplayer, FileManagerAware): image = image.resize((int(scale * image.width), int(scale * image.height)), self.backend.LANCZOS) - if image.mode != 'RGB' and image.mode != 'RGBA': + if image.mode not in ('RGB', 'RGBA'): image = image.convert('RGB') # start_x += ((box[0] - image.width) // 2) // self.pix_row # start_y += ((box[1] - image.height) // 2) // self.pix_col |