ó
Pń`cc           @   sd   d  Z  d d l Z d d l Z d e f d     YZ d e f d     YZ d e f d     YZ d S(	   s!   Exception classes used by Pexpecti˙˙˙˙Nt   ExceptionPexpectc           B   s)   e  Z d  Z d   Z d   Z d   Z RS(   s9   Base class for all exceptions raised by this module.
    c         C   s#   t  t |   j |  | |  _ d  S(   N(   t   superR    t   __init__t   value(   t   selfR   (    (    s1   lib/python2.7/site-packages/pexpect/exceptions.pyR   
   s    c         C   s   t  |  j  S(   N(   t   strR   (   R   (    (    s1   lib/python2.7/site-packages/pexpect/exceptions.pyt   __str__   s    c         C   sn   t  j t j   d  } g  | D], } d | d k r  d | d k r  | ^ q  } t  j |  } d j |  S(   sŹ   This returns an abbreviated stack trace with lines that only concern
        the caller. In other words, the stack trace inside the Pexpect module
        is not included. i   s   pexpect/__init__i    s   pexpect/expectt    (   t	   tracebackt
   extract_tbt   syst   exc_infot   format_listt   join(   R   t   tblistt   item(    (    s1   lib/python2.7/site-packages/pexpect/exceptions.pyt	   get_trace   s
    (   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    s1   lib/python2.7/site-packages/pexpect/exceptions.pyR       s   		t   EOFc           B   s   e  Z d  Z RS(   sR   Raised when EOF is read from a child.
    This usually means the child has exited.(   R   R   R   (    (    (    s1   lib/python2.7/site-packages/pexpect/exceptions.pyR      s   t   TIMEOUTc           B   s   e  Z d  Z RS(   s-   Raised when a read time exceeds the timeout. (   R   R   R   (    (    (    s1   lib/python2.7/site-packages/pexpect/exceptions.pyR   "   s   (   R   R   R
   t	   ExceptionR    R   R   (    (    (    s1   lib/python2.7/site-packages/pexpect/exceptions.pyt   <module>   s
   