summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorMojoVampire <shadowranger+github@gmail.com>2022-03-06 11:49:42 (GMT)
committerGitHub <noreply@github.com>2022-03-06 11:49:42 (GMT)
commiteafec26ae5327bb23b6dace2650b074c3327dfa0 (patch)
tree4b29c9a699bd802142c29a07f5e7f99afdc0b162 /Python/fileutils.c
parent602024e6e12c69d836aa191d63db75862aec2493 (diff)
downloadcpython-eafec26ae5327bb23b6dace2650b074c3327dfa0.zip
cpython-eafec26ae5327bb23b6dace2650b074c3327dfa0.tar.gz
cpython-eafec26ae5327bb23b6dace2650b074c3327dfa0.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').
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions