diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-23 20:03:45 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-23 20:03:45 (GMT) |
commit | ab85ff3d1a35011d09fc2e6a25a02d65f798bde4 (patch) | |
tree | 63bbca00811b84e7be43df34c9f277434c9d8eb0 /Lib/subprocess.py | |
parent | e96ec6810184f5daacb2d47ab8801365c99bb206 (diff) | |
download | cpython-ab85ff3d1a35011d09fc2e6a25a02d65f798bde4.zip cpython-ab85ff3d1a35011d09fc2e6a25a02d65f798bde4.tar.gz cpython-ab85ff3d1a35011d09fc2e6a25a02d65f798bde4.tar.bz2 |
Issue #12591: Improve support of "universal newlines" in the subprocess
module: the piped streams can now be properly read from or written to.
(this was broken due to the 2.x to 3.x transition; communicate() support
is still sketchy)
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 0523219..ddbca6a 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -721,7 +721,7 @@ class Popen(object): if p2cwrite != -1: self.stdin = io.open(p2cwrite, 'wb', bufsize) if self.universal_newlines: - self.stdin = io.TextIOWrapper(self.stdin) + self.stdin = io.TextIOWrapper(self.stdin, write_through=True) if c2pread != -1: self.stdout = io.open(c2pread, 'rb', bufsize) if universal_newlines: |