qiskit/wrapper/_wrapper.py
def least_busy(names):
    """
    Return the least busy available backend for those that
    have a `pending_jobs` in their `status`. Backends such as
    local backends that do not have this are not considered.

    Args:
        names (list[str]): backend names to choose from
                    (e.g. output of ``available_backends()``)

    Returns:
        str: the name of the least busy backend

    Raises:
        QISKitError: if passing a list of backend names that is
            either empty or none have attribute ``pending_jobs``
    .. deprecated:: 0.6+
        After 0.6, this function is deprecated. Please use the methods in
        `qiskit.IBMQ` instead
        (`backends()`).
    """
    backends = [get_backend(name) for name in names]
    warnings.warn('the global least_busy() will be deprecated after 0.6. Please '
                  'use least_busy() imported from qiskit.backends.ibmq',
                  DeprecationWarning)
    return ibmq.least_busy(backends).name()

    Return the least busy available backend for those that
    have a `pending_jobs` in their `status`. Backends such as
    local backends that do not have this are not considered.

    Args:
        names (list[str]): backend names to choose from
                    (e.g. output of ``available_backends()``)

    Returns:
        str: the name of the least busy backend

    Raises:
        QISKitError: if passing a list of backend names that is
            either empty or none have attribute ``pending_jobs``
    .. deprecated:: 0.6+
        After 0.6, this function is deprecated. Please use the methods in
        `qiskit.IBMQ` instead
        (`backends()`).
    
Return the least busy available backend for those that
have a `pending_jobs` in their `status`. Backends such as
local backends that do not have this are not considered.
Return the least busy available backend for those that have a ` pending_jobs ` in their ` status ` . Backends such as local backends that do not have this are not considered .
def least_busy(names):
    backends = [get_backend(name) for name in names]
    warnings.warn('the global least_busy() will be deprecated after 0.6. Please '
                  'use least_busy() imported from qiskit.backends.ibmq',
                  DeprecationWarning)
    return ibmq.least_busy(backends).name()
def least_busy ( names ) : backends = [ get_backend ( name ) for name in names ] warnings . warn ( 'the global least_busy() will be deprecated after 0.6. Please ' 'use least_busy() imported from qiskit.backends.ibmq' , DeprecationWarning ) return ibmq . least_busy ( backends ) . name ( )
Return the least busy available backend for those that
have a `pending_jobs` in their `status`.
Return the least busy available backend for those that have a ` pending_jobs ` in their ` status ` .
"""
    Return the least busy available backend for those that
    have a `pending_jobs` in their `status`. Backends such as
    local backends that do not have this are not considered.

    Args:
        names (list[str]): backend names to choose from
                    (e.g. output of ``available_backends()``)

    Returns:
        str: the name of the least busy backend

    Raises:
        QISKitError: if passing a list of backend names that is
            either empty or none have attribute ``pending_jobs``
    .. deprecated:: 0.6+
        After 0.6, this function is deprecated. Please use the methods in
        `qiskit.IBMQ` instead
        (`backends()`).
    """
the name of the least busy backend
the name of the least busy backend
str
if passing a list of backend names that is
either empty or none have attribute ``pending_jobs``
if passing a list of backend names that is either empty or none have attribute ` ` pending_jobs ` `
QISKitError
names
backend names to choose from
``)
backend names to choose from ` ` )