Skip to content

Conversation

methane
Copy link
Member

@methane methane commented May 6, 2022

Fix #87901

@methane methane added stdlib Standard Library Python modules in the Lib/ directory and removed awaiting core review labels May 6, 2022
@methane methane merged commit 2b563f1 into python:main May 6, 2022
@methane methane deleted the os-popen-encoding branch May 6, 2022 05:48
JelleZijlstra added a commit to python/typeshed that referenced this pull request May 7, 2022
if buffering == 0 or buffering is None:
raise ValueError("popen() does not support unbuffered streams")
import subprocess, io
encoding = io.text_encoding(encoding)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm missing something obvious, but shouldn't this be passed to subprocess.Popen?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I was too rushed.
I will fix it in follow up PR.
#92415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Standard Library Python modules in the Lib/ directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PEP 597: os.popen() uses locale encoding
3 participants