U lf@sdZdgZddZddZdS)z requests.hooks ~~~~~~~~~~~~~~ This module provides the capabilities for the Requests hooks system. Available hooks: ``response``: The response generated from a Request. responsecCsddtDS)NcSsi|] }|gqSr).0eventrrsz!default_hooks..)HOOKSrrrr default_hookssrcKsL|pi}||}|rHt|dr&|g}|D]}||f|}|dk r*|}q*|S)z6Dispatches a hook dictionary on a given piece of data.__call__N)gethasattr)keyhooks hook_datakwargshook _hook_datarrr dispatch_hooks   rN)__doc__rrrrrrrs