def filter_connection_params(queue_params):
    NON_CONNECTION_PARAMS = ('DEFAULT_TIMEOUT',)

    #return {p:v for p,v in queue_params.items() if p not in NON_CONNECTION_PARAMS}
    # Dict comprehension compatible with python 2.6
    return dict((p,v) for (p,v) in queue_params.items() if p not in NON_CONNECTION_PARAMS)
Filters the queue params to keep only the connection related params.
dataset/ETHPy150Open ui/django-rq/django_rq/queues.py/filter_connection_params