astroquery/vo_conesearch/core.py
def _validate_url(url):
    """Validate Cone Search service URL."""
    if url is None:
        url = conf.fallback_url

    # This is the standard expectation of a service URL
    if not url.endswith(('?', '&')):
        raise InvalidAccessURL("URL should end with '?' or '&'")

    # && in URL can break some queries, so remove trailing & if needed
    # as & will be added back later
    if url.endswith('&'):
        url = url[:-1]

    return url
Validate Cone Search service URL.
Validate Cone Search service URL.
Validate Cone Search service URL .
def _validate_url(url):
    if url is None:
        url = conf.fallback_url
    if not url.endswith(('?', '&')):
        raise InvalidAccessURL("URL should end with '?' or '&'")
    if url.endswith('&'):
        url = url[:-1]
    return url
def _validate_url ( url ) : if url is None : url = conf . fallback_url if not url . endswith ( ( '?' , '&' ) ) : raise InvalidAccessURL ( "URL should end with '?' or '&'" ) if url . endswith ( '&' ) : url = url [ : - 1 ] return url
Validate Cone Search service URL.
Validate Cone Search service URL .
"""Validate Cone Search service URL.""" # This is the standard expectation of a service URL # && in URL can break some queries, so remove trailing & if needed # as & will be added back later
url