dbfdg 3 .ù],ã@sHdZddlZddlZGdd„deƒZGdd„deƒZGdd„deƒZdS) z!Exception classes used by PexpectéNcs0eZdZdZ‡fdd„Zdd„Zdd„Z‡ZS)ÚExceptionPexpectz9Base class for all exceptions raised by this module. cstt|ƒj|ƒ||_dS)N)ÚsuperrÚ__init__Úvalue)Úselfr)Ú __class__©ú /usr/lib/python3.6/exceptions.pyr szExceptionPexpect.__init__cCs t|jƒS)N)Ústrr)rrrr Ú__str__szExceptionPexpect.__str__cCs4tjtjƒdƒ}dd„|Dƒ}tj|ƒ}dj|ƒS)z¬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. écSs(g|] }d|dkrd|dkr|‘qS)zpexpect/__init__rzpexpect/expectr)Ú.0Úitemrrr ú sz.ExceptionPexpect.get_trace..Ú)Ú tracebackÚ extract_tbÚsysÚexc_infoÚ format_listÚjoin)rZtblistrrr Ú get_traces zExceptionPexpect.get_trace)Ú__name__Ú __module__Ú __qualname__Ú__doc__rr rÚ __classcell__rr)rr rs rc@seZdZdZdS)ÚEOFzRRaised when EOF is read from a child. This usually means the child has exited.N)rrrrrrrr rsrc@seZdZdZdS)ÚTIMEOUTz-Raised when a read time exceeds the timeout. N)rrrrrrrr r"sr)rrrÚ Exceptionrrrrrrr Ús