webexteamssdk/utils.py
def validate_base_url(base_url):
    """Verify that base_url specifies a protocol and network location."""
    parsed_url = urllib.parse.urlparse(base_url)
    if parsed_url.scheme and parsed_url.netloc:
        return parsed_url.geturl()
    else:
        error_message = "base_url must contain a valid scheme (protocol " \
                        "specifier) and network location (hostname)"
        raise ValueError(error_message)
def validate_base_url(base_url):
    parsed_url = urllib.parse.urlparse(base_url)
    if parsed_url.scheme and parsed_url.netloc:
        return parsed_url.geturl()
    else:
        error_message = "base_url must contain a valid scheme (protocol " \
                        "specifier) and network location (hostname)"
        raise ValueError(error_message)
def validate_base_url ( base_url ) : parsed_url = urllib . parse . urlparse ( base_url ) if parsed_url . scheme and parsed_url . netloc : return parsed_url . geturl ( ) else : error_message = "base_url must contain a valid scheme (protocol " "specifier) and network location (hostname)" raise ValueError ( error_message )
Verify that base_url specifies a protocol and network location.
Verify that base_url specifies a protocol and network location .