

def _get_dev2_hostname(backend, instance=None):
    'Returns the hostname of a backend [instance] in devappserver2.\n\n  Args:\n    backend: The name of the backend.\n    instance: The backend instance number, in [0, instances-1].\n\n  Returns:\n    The hostname of the backend.\n  '
    try:
        return modules.get_hostname(module=backend, instance=backend)
    except modules.InvalidModuleError:
        raise InvalidBackendError()
    except modules.InvalidInstancesError:
        raise InvalidInstanceError()

dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/backends/backends.py _get_dev2_hostname/VarMisuse@31/128 `instance`->`backend`