File: //lib/python3.6/site-packages/redis/__pycache__/utils.cpython-36.pyc
3
be�^� � @ s` d dl mZ yd dlZdZW n ek
r4 dZY nX ddd�Zedd� �ZG d d
� d
e�ZdS )� )�contextmanagerNTFc K s ddl m} |j| |f|�S )z�
Returns an active Redis client generated from the given database URL.
Will attempt to extract the database id from the path url fragment, if
none is provided.
r )�Redis)Zredis.clientr �from_url)ZurlZdb�kwargsr � r �/usr/lib/python3.6/utils.pyr s r c c s | j � }|V |j� d S )N)�pipelineZexecute)Z redis_obj�pr r r r s r c @ s e Zd ZdZdS )�dummyzH
Instances of this class can be used as an attribute container.
N)�__name__�
__module__�__qualname__�__doc__r r r r r
s r
)N) �
contextlibr ZhiredisZHIREDIS_AVAILABLE�ImportErrorr r �objectr
r r r r �<module> s