This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ThiefMaster
Recipients ThiefMaster
Date 2020-11-17.13:56:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605621389.6.0.523205188314.issue42388@roundup.psfhosted.org>
In-reply-to
Content
`subprocess.check_output(['echo', 'test'], text=True, input=None)` fails with `AttributeError: 'bytes' object has no attribute 'encode'` due to the function only checking for `universal_newlines` but not `text`: https://github.com/python/cpython/blob/2ffba2a1027909e1dd697bf8ec2a03fba7618020/Lib/subprocess.py#L423

This is inconsistent with the docs, which state that "text was added as a more readable alias for universal_newlines.".
History
Date User Action Args
2020-11-17 13:56:29ThiefMastersetrecipients: + ThiefMaster
2020-11-17 13:56:29ThiefMastersetmessageid: <1605621389.6.0.523205188314.issue42388@roundup.psfhosted.org>
2020-11-17 13:56:29ThiefMasterlinkissue42388 messages
2020-11-17 13:56:29ThiefMastercreate