3 ÝPfÿã@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ú sz default_hooks..)Ú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Ú s