New submission from ThiefMaster <adr...@planetcoding.net>:
`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.". ---------- components: Library (Lib) messages: 381234 nosy: ThiefMaster priority: normal severity: normal status: open title: subprocess.check_output(['echo', 'test'], text=True, input=None) fails type: behavior versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42388> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com