Viewing File: /usr/lib/python3.6/site-packages/pip/_vendor/requests/__pycache__/hooks.cpython-36.pyc
3
£éajÿ ã @ s d Z dgZdd„ Zdd„ ZdS )z±
requests.hooks
~~~~~~~~~~~~~~
This module provides the capabilities for the Requests hooks system.
Available hooks:
``response``:
The response generated from a Request.
Zresponsec C s t dd„ tD ƒƒS )Nc s s | ]}|g fV qd S )N© )Ú.0Zeventr r ú/usr/lib/python3.6/hooks.pyú <genexpr> s z default_hooks.<locals>.<genexpr>)ÚdictÚHOOKSr r r r Ú
default_hooks s r c K sR |pt ƒ }|j| ƒ}|rNt|dƒr(|g}x$|D ]}||f|Ž}|dk r.|}q.W |S )z6Dispatches a hook dictionary on a given piece of data.Ú__call__N)r ÚgetÚhasattr)ÚkeyZhooksZ hook_dataÚkwargsÚhookZ
_hook_datar r r Ú
dispatch_hook s
r N)Ú__doc__r r r r r r r Ú<module>
s
Back to Directory
File Manager