summaryrefslogtreecommitdiff
path: root/Python/suggestions.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-03-06 04:12:06 -0800
committerGitHub <noreply@github.com>2022-03-06 04:12:06 -0800
commitee18df425209cfa4f394b57220177c168fc3a1da (patch)
tree025b4e50a6063a616436aa59ba77d102df180838 /Python/suggestions.c
parent4716f70c8543d12d18c64677af650d479b99edac (diff)
downloadcpython-git-ee18df425209cfa4f394b57220177c168fc3a1da.tar.gz
bpo-14156: Make argparse.FileType work correctly for binary file modes when argument is '-' (GH-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 eafec26ae5327bb23b6dace2650b074c3327dfa0) Co-authored-by: MojoVampire <shadowranger+github@gmail.com>
Diffstat (limited to 'Python/suggestions.c')
0 files changed, 0 insertions, 0 deletions