diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-18 19:08:51 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-18 19:08:51 (GMT) |
commit | 632e0364d6138d4e1e8e3a586c824bd21fe92514 (patch) | |
tree | 4ca7079818f2eff7c2e9e7573a776a1e17e5cff8 | |
parent | f6682141062efcfe2949cf876d48e61175a041a9 (diff) | |
download | cpython-632e0364d6138d4e1e8e3a586c824bd21fe92514.zip cpython-632e0364d6138d4e1e8e3a586c824bd21fe92514.tar.gz cpython-632e0364d6138d4e1e8e3a586c824bd21fe92514.tar.bz2 |
fix set_daemon usage in subprocess
-rw-r--r-- | Lib/subprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index d3e9692..ac92185 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -876,13 +876,13 @@ class Popen(object): stdout = [] stdout_thread = threading.Thread(target=self._readerthread, args=(self.stdout, stdout)) - stdout_thread.set_daemon(True) + stdout_thread.daemon = True stdout_thread.start() if self.stderr: stderr = [] stderr_thread = threading.Thread(target=self._readerthread, args=(self.stderr, stderr)) - stderr_thread.set_daemon(True) + stderr_thread.daemon = True stderr_thread.start() if self.stdin: |