summaryrefslogtreecommitdiffstats
path: root/Include/code.h
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-03-06 12:12:06 (GMT)
committerGitHub <noreply@github.com>2022-03-06 12:12:06 (GMT)
commitee18df425209cfa4f394b57220177c168fc3a1da (patch)
tree025b4e50a6063a616436aa59ba77d102df180838 /Include/code.h
parent4716f70c8543d12d18c64677af650d479b99edac (diff)
downloadcpython-ee18df425209cfa4f394b57220177c168fc3a1da.zip
cpython-ee18df425209cfa4f394b57220177c168fc3a1da.tar.gz
cpython-ee18df425209cfa4f394b57220177c168fc3a1da.tar.bz2
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 'Include/code.h')
0 files changed, 0 insertions, 0 deletions