[issue4036] Support bytes for subprocess.Popen()

Brian Curtin report at bugs.python.org
Thu Mar 4 02:26:36 CET 2010


Brian Curtin <curtin at acm.org> added the comment:

The list2cmdline function checks spaces, tabs, etc in line 521 of subprocess.py. In your first test case, it ends up checking if a string is contained in a bytes object, which is a TypeError for the str not supporting the buffer API. 

Would it be acceptable to just add "arg = str(arg)" right under the for loop? That fixes it for me, not sure of the preferred way to go about it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4036>
_______________________________________


More information about the Python-bugs-list mailing list