ó
Ļ9Vc           @   s%   d  Z  d g Z d   Z d   Z d S(   sē   
requests.hooks
~~~~~~~~~~~~~~

This module provides the capabilities for the Requests hooks system.

Available hooks:

``response``:
    The response generated from a Request.

t   responsec          C   s%   i  }  x t  D] } g  |  | <q W|  S(   N(   t   HOOKS(   t   hookst   event(    (    s7   /tmp/pip-build-5Z5nTX/pip/pip/_vendor/requests/hooks.pyt   default_hooks   s    c         K   s   | p t    } |  | k r} | j |   } t | d  rE | g } n  x5 | D]* } | | |  } | d k	 rL | } qL qL Wn  | S(   s6   Dispatches a hook dictionary on a given piece of data.t   __call__N(   t   dictt   gett   hasattrt   None(   t   keyR   t	   hook_datat   kwargst   hookt
   _hook_data(    (    s7   /tmp/pip-build-5Z5nTX/pip/pip/_vendor/requests/hooks.pyt   dispatch_hook   s    N(   t   __doc__R   R   R   (    (    (    s7   /tmp/pip-build-5Z5nTX/pip/pip/_vendor/requests/hooks.pyt   <module>   s   			