Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-87901: Add encoding to os.popen#92374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
methane merged 2 commits intopython:mainfrommethane:os-popen-encoding
May 6, 2022

Conversation

@methane
Copy link
Member

@methanemethane added stdlibStandard Library Python modules in the Lib/ directory and removed awaiting core review labelsMay 6, 2022
@methanemethane merged commit2b563f1 intopython:mainMay 6, 2022
@methanemethane deleted the os-popen-encoding branchMay 6, 2022 05:48
JelleZijlstra added a commit to python/typeshed that referenced this pull requestMay 7, 2022
ifbuffering==0orbufferingisNone:
raiseValueError("popen() does not support unbuffered streams")
importsubprocess,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
MemberAuthor

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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hauntsaninjahauntsaninjahauntsaninja left review comments

Assignees

No one assigned

Labels

stdlibStandard Library Python modules in the Lib/ directory

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

PEP 597: os.popen() uses locale encoding

3 participants

@methane@hauntsaninja@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp