def validate_pypi_mirror(ctx, param, value):
    if (value and (not is_valid_url(value))):
        raise BadParameter(('Invalid PyPI mirror URL: %s' % value))
    return value
def validate_pypi_mirror(ctx, param, value):
    if (value and (not is_valid_url(value))):
        raise BadParameter(('Invalid PyPI mirror URL: %s' % value))
    return value