diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-23 20:04:41 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-23 20:04:41 (GMT) |
commit | e02891b459b6a903b71dce1dfb1399419eaefaaf (patch) | |
tree | 2cc4bec3fa7b826cc952c256b0e8f0f12c0e5d67 /Lib/subprocess.py | |
parent | 664091be72c8b1620cea239bf8ae0be19570709d (diff) | |
parent | ab85ff3d1a35011d09fc2e6a25a02d65f798bde4 (diff) | |
download | cpython-e02891b459b6a903b71dce1dfb1399419eaefaaf.zip cpython-e02891b459b6a903b71dce1dfb1399419eaefaaf.tar.gz cpython-e02891b459b6a903b71dce1dfb1399419eaefaaf.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.
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 83e6c40..ec417c2 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -728,7 +728,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: |