

def _get_dev_port_var(backend, instance=None):
    'Return the environment variable for a backend port.\n\n  Backend ports are stored at GET_PORT_<backend> for backends\n  and GET_PORT_<backend>.<instance> for individual instances.\n\n  Args:\n    backend: The name of the backend.\n    instance: The backend instance (optional).\n\n  Returns:\n    string: The environment variable where the backend port is stored.\n  '
    port_var = ('BACKEND_PORT.%s' % str(instance).lower())
    if (instance is not None):
        port_var = ('%s.%d' % (port_var, instance))
    return port_var

dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/backends/backends.py _get_dev_port_var/VarMisuse@23/166 `backend`->`instance`