[New-bugs-announce] [issue27273] subprocess.run(cmd, input='text') should pass universal_newlines=True to Popen

Akira Li report at bugs.python.org
Wed Jun 8 19:59:23 EDT 2016


New submission from Akira Li:

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.

----------
components: Library (Lib)
files: text_input.diff
keywords: patch
messages: 267936
nosy: akira
priority: normal
severity: normal
status: open
title: subprocess.run(cmd, input='text') should pass universal_newlines=True to Popen
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43314/text_input.diff

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


More information about the New-bugs-announce mailing list