def full_callback(option, opt_str, value, parser): ne = utils.parse_name_email(value) if not ne: raise optparse.OptionValueError("Bad %s specification: %r" % (opt_str, value)) name, email = ne short_callback(option, opt_str, name, parser, "name") short_callback(option, opt_str, email, parser, "email")
def full_callback(option, opt_str, value, parser): ne = utils.parse_name_email(value) if not ne: raise optparse.OptionValueError('Bad %s specification: %r' % (opt_str, value)) name, email = ne short_callback(option, opt_str, name, parser, 'name') short_callback(option, opt_str, email, parser, 'email')