

def get_url(backend=None, instance=None, protocol='http'):
    "DEPRECATED: Returns a URL pointing to a backend or backend instance.\n\n  Warning: This API is deprecated and will be removed in a future\n  release. Please migrate to the Modules API as soon as possible.\n\n  This method works in both production and development environments.\n\n  Args:\n    backend: The name of the backend. If None, the current backend will be used.\n\n    instance: An optoinal instance number. If provided, the URL will target\n      the specific instance.  If absent, the URL will point to a load-balancing\n      hostname for the backend.\n\n    protocol: The protocol to use (default='http').\n\n  Raises:\n    InvalidBackendError\n    InvalidInstanceError\n\n  Returns:\n    The URL of the backend or backend instance.\n  "
    if (backend is None):
        backend = get_backend()
    if _is_dev2_environment():
        return _get_dev2_url(backend, instance)
    elif _is_dev_environment():
        return _get_dev_url(backend, instance)
    hostname = get_hostname(backend, instance)
    return ('%s://%s' % (protocol, hostname))

dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/backends/backends.py get_url/original