blob: 7bfc917a2a7501ee14d3a36a2a8318793f83853f (
plain)
1
2
3
4
|
argparse.FileType now supports an argument of '-' in binary mode, returning
the .buffer attribute of sys.stdin/sys.stdout as appropriate. Modes
including 'x' and 'a' are treated equivalently to 'w' when argument is '-'.
Patch contributed by Josh Rosenberg
|