ó
^ęWc           @   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   t  d   t D  S(   Nc         s   s   |  ] } | g  f Vq d  S(   N(    (   t   .0t   event(    (    sk   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/requests/hooks.pys	   <genexpr>   s    (   t   dictt   HOOKS(    (    (    sk   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/requests/hooks.pyt   default_hooks   s    c         K   s{   | p t    } | j |   } | rw t | d  r? | g } n  x5 | D]* } | | |  } | d k	 rF | } qF qF Wn  | S(   s6   Dispatches a hook dictionary on a given piece of data.t   __call__N(   R   t   gett   hasattrt   None(   t   keyt   hookst	   hook_datat   kwargst   hookt
   _hook_data(    (    sk   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/requests/hooks.pyt   dispatch_hook   s    N(   t   __doc__R   R   R   (    (    (    sk   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/requests/hooks.pyt   <module>   s   		