diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-19 17:06:22 +0100 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-03-19 17:06:22 +0100 |
| commit | 81fd953cefa09fed83179e1d7caaebac88424806 (patch) | |
| tree | 3bb080d3a5f1ccffeca76ae4a7d568b2d35dad2a /Lib/subprocess.py | |
| parent | fce6a7c4b3956c9fe03fe78f010d922b2e04f411 (diff) | |
| parent | 875abc06304c6ce54629b26b4f2b5e1f98010b01 (diff) | |
| download | cpython-81fd953cefa09fed83179e1d7caaebac88424806.tar.gz | |
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.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 4a8adcfa7d..383085ec72 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -743,8 +743,6 @@ class Popen(object): if errread != -1: errread = msvcrt.open_osfhandle(errread.Detach(), 0) - if bufsize == 0: - bufsize = 1 # Nearly unbuffered (XXX for now) if p2cwrite != -1: self.stdin = io.open(p2cwrite, 'wb', bufsize) if self.universal_newlines: |
