diff options
author | Guido van Rossum <guido@python.org> | 2007-10-26 04:29:23 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-26 04:29:23 +0000 |
commit | effe7e53ef130e3de7f4e6a2d28d8254be157a6a (patch) | |
tree | a5ce9104f3ab9fab9274701de5541ba8f9b415da /Lib/subprocess.py | |
parent | 2002153dc496ba4bf0efc745ec0c6f33a72d09d4 (diff) | |
download | cpython-effe7e53ef130e3de7f4e6a2d28d8254be157a6a.tar.gz |
Patch # 1331 by Christian Heimes.
The patch fixes some of the problems on Windows. It doesn't introduce
addition problems on Linux.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 6b9bb6b205..6eb93857a2 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -809,6 +809,8 @@ class Popen(object): if self.stdin: if input is not None: + if isinstance(input, str): + input = input.encode() self.stdin.write(input) self.stdin.close() |