Patch # 1331 by Christian Heimes.

The patch fixes some of the problems on Windows. It doesn't introduce
addition problems on Linux.
This commit is contained in:
Guido van Rossum 2007-10-26 04:29:23 +00:00
parent daa251ca09
commit c12a813aa7
7 changed files with 25 additions and 15 deletions

View file

@ -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()