mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 12:14:46 +03:00
Code formatting applied
This commit is contained in:
parent
94ef447da8
commit
81d2becfc4
|
@ -190,7 +190,8 @@ class UnixViewer(Viewer):
|
||||||
def thread_monitor(self, th):
|
def thread_monitor(self, th):
|
||||||
"""
|
"""
|
||||||
Monitors image viewing threads.
|
Monitors image viewing threads.
|
||||||
The last remaining monitoring thread is responsible for removal of temporary images.
|
The last remaining monitoring thread is responsible
|
||||||
|
for removal of temporary images.
|
||||||
"""
|
"""
|
||||||
th.join()
|
th.join()
|
||||||
if threading.active_count() == 2:
|
if threading.active_count() == 2:
|
||||||
|
@ -226,12 +227,15 @@ class UnixViewer(Viewer):
|
||||||
|
|
||||||
path = quote(path)
|
path = quote(path)
|
||||||
command = self.get_command(path, **options)
|
command = self.get_command(path, **options)
|
||||||
th = threading.Thread(target=subprocess.run, args=(command.split(),),
|
th = threading.Thread(
|
||||||
kwargs={
|
target=subprocess.run,
|
||||||
"stdout": subprocess.PIPE,
|
args=(command.split(),),
|
||||||
"stderr": subprocess.PIPE,
|
kwargs={
|
||||||
},
|
"stdout": subprocess.PIPE,
|
||||||
name=path)
|
"stderr": subprocess.PIPE,
|
||||||
|
},
|
||||||
|
name=path,
|
||||||
|
)
|
||||||
self.opened_images.append(th.name)
|
self.opened_images.append(th.name)
|
||||||
th.start()
|
th.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user