mirror of
https://github.com/python/cpython.git
synced 2025-08-26 11:45:20 +00:00
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:
parent
daa251ca09
commit
c12a813aa7
7 changed files with 25 additions and 15 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue