classification
Title: subprocess.run(cmd, input='text') should pass universal_newlines=True to Popen
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: akira, gregory.p.smith
Priority: normal Keywords: patch

Created on 2016-06-08 23:59 by akira, last changed 2016-06-17 09:22 by ned.deily.

Files
File name Uploaded Description Edit
text_input.diff akira, 2016-06-08 23:59 review
Messages (1)
msg267936 - (view) Author: Akira Li (akira) * Date: 2016-06-08 23:59
At the moment, subprocess.run(cmd, input='text') raises TypeError.
It would be nice if universal_newlines=isinstance(input, str) if *input* is set.

I've attached a corresponding patch with the necessary changes to the docs, tests and the subprocess.run() code.
History
Date User Action Args
2016-06-17 09:22:51ned.deilysetnosy: + gregory.p.smith

stage: patch review
2016-06-08 23:59:23akiracreate