Message344568
There is a possibility that someone (like me) accidentally will omit parentheses with FileType arguments after FileType, and parser will contain wrong file until someone will try to use it.
Example:
parser = argparse.ArgumentParser()
parser.add_argument('-x', type=argparse.FileType) |
|
Date |
User |
Action |
Args |
2019-06-04 13:22:00 | zygocephalus | set | recipients:
+ zygocephalus |
2019-06-04 13:22:00 | zygocephalus | set | messageid: <1559654520.68.0.135252915467.issue37150@roundup.psfhosted.org> |
2019-06-04 13:22:00 | zygocephalus | link | issue37150 messages |
2019-06-04 13:22:00 | zygocephalus | create | |
|