SIGN IN SIGN UP

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').
M
MojoVampire committed
eafec26ae5327bb23b6dace2650b074c3327dfa0
Parent: 602024e
Committed by GitHub <noreply@github.com> on 3/6/2022, 11:49:42 AM