commit | eafec26ae5327bb23b6dace2650b074c3327dfa0 | [log] [tgz] |
---|---|---|
author | MojoVampire <shadowranger+github@gmail.com> | Sun Mar 06 11:49:42 2022 +0000 |
committer | GitHub <noreply@github.com> | Sun Mar 06 13:49:42 2022 +0200 |
tree | 4b29c9a699bd802142c29a07f5e7f99afdc0b162 | |
parent | 602024e6e12c69d836aa191d63db75862aec2493 [diff] |
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').