diff options
author | toonn <toonn@toonn.io> | 2022-02-05 19:03:01 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-02-05 19:30:33 +0100 |
commit | 4388a5e93a96cb71822424f3e172e4ddb923a4b2 (patch) | |
tree | 7ebcb7d86a448a67399630612780cbe00b1fff81 | |
parent | 0997b432d3c6bf532d66c26f10a9091d8da79a6b (diff) | |
download | ranger-4388a5e93a96cb71822424f3e172e4ddb923a4b2.tar.gz |
file: Use `in` Pythonism
-rw-r--r-- | ranger/container/file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/container/file.py b/ranger/container/file.py index 9477abe7..4cc29887 100644 --- a/ranger/container/file.py +++ b/ranger/container/file.py @@ -86,7 +86,7 @@ class File(FileSystemObject): return True if PREVIEW_BLACKLIST.search(self.basename): return False - if self.path == '/dev/core' or self.path == '/proc/kcore': + if self.path in ('/dev/core', '/proc/kcore'): return False if self.is_binary(): return False |