On 16 Oct 2015 16:39, Brian Norris wrote:
> commit_str = args.get('c')
if you feel like cleaning things up, i find the args behavior weird and
non-standard. it does:
args = action_parser.parse_args()
args = dict(vars(args))
action = args.get('subcmd')
normally argparse code does:
args = action_parser.parse_args()
action = args.subcmd
i'm not sure why this dict/get style was picked. maybe Bernhard can
shed some light here.
-mike
signature.asc
Description: Digital signature
_______________________________________________ Patchwork mailing list [email protected] https://lists.ozlabs.org/listinfo/patchwork
