From 1ec32b7c107b1240bd3e9be390d77cf9e4a2cf41 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 20:04:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/PIL/ImageShow.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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()