[issue2683] subprocess.Popen.communicate takes bytes, not str
Rafael Zanella
report at bugs.python.org
Mon Jun 30 00:57:20 CEST 2008
Rafael Zanella <rafael.zanella at yahoo.com.br> added the comment:
On subprocess.py the new method communicate() doesn't encode the string:
"""
_communicate(self, input):
...
if isinstance(input, str):
input = input.encode()
...
"""
I've attached a patch that adds the str.encode() call on communicate().
----------
keywords: +patch
nosy: +zanella
Added file: http://bugs.python.org/file10779/subprocess_strEncode.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2683>
_______________________________________
More information about the Python-bugs-list
mailing list