about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-01-05 16:40:47 +0100
committertoonn <toonn@toonn.io>2021-01-05 16:40:47 +0100
commit1ea2f68800ccdcf3f0d26b608201f8a7807bdf37 (patch)
treeea8d9a1188518f764e6be02618d0ac8157596fd6 /ranger
parent42cb5a521bf9b24eaaf47daed2b45763e704c347 (diff)
parent1ec9d7f5cc4f7ffd9c514616e7ad342e8662cd49 (diff)
downloadranger-1ea2f68800ccdcf3f0d26b608201f8a7807bdf37.tar.gz
Merge branch 'XuehaiPan-scope'
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/data/scope.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index a3e1bedf..16adaf91 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -218,7 +218,8 @@ handle_image() {
         #     { [ "$rar" ] && fn=$(unrar lb -p- -- "${FILE_PATH}"); } || \
         #     { [ "$zip" ] && fn=$(zipinfo -1 -- "${FILE_PATH}"); } || return
         #
-        #     fn=$(echo "$fn" | python -c "import sys; import mimetypes as m; \
+        #     fn=$(echo "$fn" | python -c "from __future__ import print_function; \
+        #             import sys; import mimetypes as m; \
         #             [ print(l, end='') for l in sys.stdin if \
         #               (m.guess_type(l[:-1])[0] or '').startswith('image/') ]" |\
         #         sort -V | head -n 1)