[3.9] bpo-14156: Make argparse.FileType work correctly for binary fil… by serhiy-storchaka · Pull Request #31979 · python/cpython (original) (raw)
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 our terms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation0 Commits1 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
…e modes when argument is '-' (pythonGH-13165)
Also made modes containing 'a' or 'x' act the same as a mode containing 'w' when argument is '-' (so 'a'/'x' return sys.stdout like 'w', and 'ab'/'xb' return sys.stdout.buffer like 'wb').. (cherry picked from commit eafec26)
Co-authored-by: MojoVampire shadowranger+github@gmail.com
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request
…e modes when argument is '-' (pythonGH-13165) (pythonGH-31979)
Also made modes containing 'a' or 'x' act the same as a mode containing 'w' when argument is '-' (so 'a'/'x' return sys.stdout like 'w', and 'ab'/'xb' return sys.stdout.buffer like 'wb'). (cherry picked from commit eafec26)
Co-authored-by: MojoVampire shadowranger+github@gmail.com