commit | c12a813aa7671ee12ccb79a70177a62bcefa2561 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Oct 26 04:29:23 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Oct 26 04:29:23 2007 +0000 |
tree | f6512593e7c4ed8211f2dd2c34c8676b5ed6301e | |
parent | daa251ca097e7f7382ed57c10efbbaddad103afb [diff] [blame] |
Patch # 1331 by Christian Heimes. The patch fixes some of the problems on Windows. It doesn't introduce addition problems on Linux.
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 6b9bb6b..6eb9385 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py
@@ -809,6 +809,8 @@ if self.stdin: if input is not None: + if isinstance(input, str): + input = input.encode() self.stdin.write(input) self.stdin.close()