๓
jทร^c           @   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   d   t  D S(   Nc         S   s   i  |  ] } g  |  q S(    (    (   t   .0t   event(    (    s+   site-packages/pip/_vendor/requests/hooks.pys
   <dictcomp>   s   	 (   t   HOOKS(    (    (    s+   site-packages/pip/_vendor/requests/hooks.pyt   default_hooks   s    c         K   sx   | p	 i  } | j  |   } | rt t | d  r< | g } n  x5 | D]* } | | |  } | d k	 rC | } qC qC Wn  | S(   s6   Dispatches a hook dictionary on a given piece of data.t   __call__N(   t   gett   hasattrt   None(   t   keyt   hookst	   hook_datat   kwargst   hookt
   _hook_data(    (    s+   site-packages/pip/_vendor/requests/hooks.pyt   dispatch_hook   s    N(   t   __doc__R   R   R   (    (    (    s+   site-packages/pip/_vendor/requests/hooks.pyt   <module>   s   		