changeset 47668:9c79ee49a2d9

fix more threading API usage
author Benjamin Peterson <benjamin@python.org>
date Fri, 13 Jun 2008 01:31:43 +0000
parents b1f4ea4eb555
children 31988b401535
files Lib/subprocess.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/subprocess.py	Fri Jun 13 01:09:34 2008 +0000
+++ b/Lib/subprocess.py	Fri Jun 13 01:31:43 2008 +0000
@@ -872,13 +872,13 @@
                 stdout = []
                 stdout_thread = threading.Thread(target=self._readerthread,
                                                  args=(self.stdout, stdout))
-                stdout_thread.setDaemon(True)
+                stdout_thread.set_daemon(True)
                 stdout_thread.start()
             if self.stderr:
                 stderr = []
                 stderr_thread = threading.Thread(target=self._readerthread,
                                                  args=(self.stderr, stderr))
-                stderr_thread.setDaemon(True)
+                stderr_thread.set_daemon(True)
                 stderr_thread.start()
 
             if self.stdin: