Viewing File: /usr/lib/python3.6/site-packages/pip/_vendor/requests/__pycache__/hooks.cpython-36.pyc

3

£éajÿã@sdZdgZdd„Zdd„ZdS)z±
requests.hooks
~~~~~~~~~~~~~~

This module provides the capabilities for the Requests hooks system.

Available hooks:

``response``:
    The response generated from a Request.
ZresponsecCstdd„tDƒƒS)Ncss|]}|gfVqdS)N©)Ú.0Zeventrrú/usr/lib/python3.6/hooks.pyú	<genexpr>sz default_hooks.<locals>.<genexpr>)ÚdictÚHOOKSrrrrÚ
default_hookssrcKsR|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_datarrrÚ
dispatch_hooks



rN)Ú__doc__rrrrrrrÚ<module>
s
Back to Directory File Manager