summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-08-31 23:15:28 -0400
committerR David Murray <rdmurray@bitdance.com>2012-08-31 23:15:28 -0400
commit201018718fc55fada8fd159b86bc038c3d297597 (patch)
tree98c4e56a7b88c56873d52157c6faf5bd2ea17421 /Python/Python-ast.c
parentcd366620a9bb912e4ab437afdd046ea725bb0799 (diff)
downloadcpython-git-201018718fc55fada8fd159b86bc038c3d297597.tar.gz
#12776,#11839: call argparse type function only once.
Before, the type function was called twice in the case where the default was specified and the argument was given as well. This was especially problematic for the FileType type, as a default file would always be opened, even if a file argument was specified on the command line. Patch by Arnaud Fontaine, with additional test by Mike Meyer.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions