mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use Thread.is_alive() instead of old-style Thread.isAlive() in subprocess.
This commit is contained in:
parent
a86f185374
commit
377a152e0d
1 changed files with 2 additions and 2 deletions
|
@ -1188,11 +1188,11 @@ class Popen(object):
|
|||
# calls communicate again.
|
||||
if self.stdout is not None:
|
||||
self.stdout_thread.join(self._remaining_time(endtime))
|
||||
if self.stdout_thread.isAlive():
|
||||
if self.stdout_thread.is_alive():
|
||||
raise TimeoutExpired(self.args, orig_timeout)
|
||||
if self.stderr is not None:
|
||||
self.stderr_thread.join(self._remaining_time(endtime))
|
||||
if self.stderr_thread.isAlive():
|
||||
if self.stderr_thread.is_alive():
|
||||
raise TimeoutExpired(self.args, orig_timeout)
|
||||
|
||||
# Collect the output from and close both pipes, now that we know
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue