ó
Ð²Ebc           @   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(    (    s7   /tmp/pip-build-UPPWic/pip/pip/_vendor/requests/hooks.pys
   <dictcomp>   s   	 (   t   HOOKS(    (    (    s7   /tmp/pip-build-UPPWic/pip/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(    (    s7   /tmp/pip-build-UPPWic/pip/pip/_vendor/requests/hooks.pyt   dispatch_hook   s    N(   t   __doc__R   R   R   (    (    (    s7   /tmp/pip-build-UPPWic/pip/pip/_vendor/requests/hooks.pyt   <module>   s   		