diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 987989e6f..1b7c95299 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -239,14 +239,10 @@ class UnixViewer(Viewer): path = quote(path) command = self.get_command(path, **options) - kwargs = { - "shell": True, - "stdout": subprocess.PIPE, - "stderr": subprocess.PIPE - } + kwargs = {"shell": True, "stdout": subprocess.PIPE, "stderr": subprocess.PIPE} th = threading.Thread( - target=subprocess.run, args=(command, ), kwargs=kwargs, name=path + target=subprocess.run, args=(command,), kwargs=kwargs, name=path ) self.opened_images.append(th.name) th.start()