ó
sÒARc           @   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(    (    s2   /usr/lib/python2.7/dist-packages/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(    (    s2   /usr/lib/python2.7/dist-packages/requests/hooks.pyt   dispatch_hook   s    N(   t   __doc__R   R   R   (    (    (    s2   /usr/lib/python2.7/dist-packages/requests/hooks.pyt   <module>   s   			