[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

Aviv Palivoda report at bugs.python.org
Wed Dec 14 13:32:58 EST 2016


Aviv Palivoda added the comment:

Hi paul thanks for looking into this. First are you sure this is a bug in python 2? If so I will happily port this patch once it is reviewed.
As for use cases you may look at issue #26488. Although the patch was rejected you can see that I first used argparse.FileType and moved it because of this issue. I can't prove this patch is free of backward's compatibility issue's but there are tests now which should help to avoid problem.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14156>
_______________________________________


More information about the Python-bugs-list mailing list