[Python-checkins] cpython: Use Thread.is_alive() instead of old-style Thread.isAlive() in subprocess.

andrew.svetlov python-checkins at python.org
Sun Aug 19 19:49:49 CEST 2012


http://hg.python.org/cpython/rev/882da270d21a
changeset:   78654:882da270d21a
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Sun Aug 19 20:49:39 2012 +0300
summary:
  Use Thread.is_alive() instead of old-style Thread.isAlive() in subprocess.

files:
  Lib/subprocess.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/subprocess.py b/Lib/subprocess.py
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1188,11 +1188,11 @@
             # 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list