ó
x\c           @   s"   d  d l  Z  e  j d    Z d S(   i˙˙˙˙Nc         c   s   y	 d VWnp t  k
 r{ } | j d } | j |  |  } | f } t | j  d k rl | | j d } n  | | _   n Xd S(   s$   Rewrite the message of an exception.Ni    i   (   t	   Exceptiont   argst   replacet   len(   t   old_namet   new_namet   et   msgR   (    (    s6   lib/python2.7/site-packages/pandas/util/_exceptions.pyt   rewrite_exception   s    			(   t
   contextlibt   contextmanagerR   (    (    (    s6   lib/python2.7/site-packages/pandas/util/_exceptions.pyt   <module>   s   