summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-03-19 16:00:37 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-03-19 16:00:37 (GMT)
commit877766dee8e60c7971ed0cabba89fbe981c2ab1b (patch)
tree07c365e3a3389598a6df338d09be696836b7cf5f /Lib/subprocess.py
parent5e98141f9f576934fe5635c66614f82be1ee0a9a (diff)
downloadcpython-877766dee8e60c7971ed0cabba89fbe981c2ab1b.zip
cpython-877766dee8e60c7971ed0cabba89fbe981c2ab1b.tar.gz
cpython-877766dee8e60c7971ed0cabba89fbe981c2ab1b.tar.bz2
Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
unbuffered pipes, such that select() works properly on them.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 97792db..dc5b608 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -653,8 +653,6 @@ class Popen(object):
if errread is not None:
errread = msvcrt.open_osfhandle(errread.Detach(), 0)
- if bufsize == 0:
- bufsize = 1 # Nearly unbuffered (XXX for now)
if p2cwrite is not None:
self.stdin = io.open(p2cwrite, 'wb', bufsize)
if self.universal_newlines: