[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2022-02-08 20:04:13 +00:00
parent 6a84854da9
commit 1ec32b7c10

View File

@ -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()