From c12a813aa7671ee12ccb79a70177a62bcefa2561 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 26 Oct 2007 04:29:23 +0000 Subject: Patch # 1331 by Christian Heimes. The patch fixes some of the problems on Windows. It doesn't introduce addition problems on Linux. --- Lib/subprocess.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/subprocess.py') 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() -- cgit v1.2.1