about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-08 19:43:28 +0200
committertoonn <toonn@toonn.io>2021-08-08 19:43:28 +0200
commit08dc11d721fbe954c955fe18592eaf140ebed082 (patch)
treed4213974707bf9ff6ece046ae797016e4c71dcc3
parent19ac943bb34300b870880154c681028593512430 (diff)
downloadranger-08dc11d721fbe954c955fe18592eaf140ebed082.tar.gz
img_display: Use Popen23 for compatibility
-rw-r--r--ranger/ext/img_display.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py
index e85c4f84..569d03a9 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -32,6 +32,7 @@ from tempfile import NamedTemporaryFile
 
 from ranger import PY3
 from ranger.core.shared import FileManagerAware, SettingsAware
+from ranger.ext.popen23 import Popen23
 
 W3MIMGDISPLAY_ENV = "W3MIMGDISPLAY_PATH"
 W3MIMGDISPLAY_OPTIONS = []
@@ -167,7 +168,7 @@ class W3MImageDisplayer(ImageDisplayer, FileManagerAware):
         fretint = fcntl.ioctl(fd_stdout, termios.TIOCGWINSZ, farg)
         rows, cols, xpixels, ypixels = struct.unpack("HHHH", fretint)
         if xpixels == 0 and ypixels == 0:
-            with Popen(
+            with Popen23(
                 [self.binary_path, "-test"],
                 stdout=PIPE,
                 universal_newlines=True,
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210