PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  Ɵ[c@shddlZddlmZmZdefdYZdefdYZdefd YZdS( iNi(tEOFtTIMEOUTtExpectercBsJeZddZdZddZddZdZddZRS(icCs7||_||_|dkr*|j}n||_dS(Ni(tspawntsearchertsearchwindowsize(tselfRRR((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyt__init__s     cCss|j}|j}|jj}|jj||jj||jr|jjtd||j|jj |jt |}n |j }|j |t |}|dkrD|j |_|jj||j|jjdt ||j !|_|j |_||j|j!|_|j|_||_|S|jro|j |_|jj|ndS(Ni(RRt_bufferttelltwritet_beforeRtseektmaxtreadtlentbuffertsearcht buffer_typetendtgetvaluetstarttbeforetaftertmatcht match_index(RtdataRRtpostwindowtindex((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pytnew_data s,    "  '   cCs|j}|j|_|j|_|j|_t|_|jj }|dkrjt|_ ||_ |Sd|_ d|_ t |}|d|j7}|dk rt |d|}nt|dS(Nis searcher: %ss (RRRRRR RRRt eof_indexRRtNonetstr(RterrRRtmsg((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyteof,s"           cCs|j}|j|_t|_|jj}|dkrLt|_||_|Sd|_d|_t |}|d|j7}|dk rt |d|}nt|dS(Nis searcher: %ss ( RRRRRRt timeout_indexRRR R!(RR"RRR#((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyttimeoutAs           cCs4|j}|j|_d|_d|_d|_dS(N(RRRR RRR(RR((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyterroredTs     cCsP|j}|dk r(tj|}ny|j}|j|_|j|_xtr|j|}|dk rz|S|dk r|dkr|j S|j |j |}|jj dk rtj |jj n|dk rU|tj}qUqUWWnLtk r}|j|Stk r8}|j |S|jnXdS(sBlocking expectiN(RR ttimeRRRR tTrueRR&tread_nonblockingtmaxreadtdelayafterreadtsleepRR$RR'(RR&Rtend_timetincomingtidxte((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyt expect_loop[s2          N( t__name__t __module__RRR R$R&R'R2(((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyRs      tsearcher_stringcBs,eZdZdZdZddZRS(s-This is a plain string search helper for the spawn.expect_any() method. This helper class is for speed. For more powerful regex patterns see the helper class, searcher_re. Attributes: eof_index - index of EOF, or -1 timeout_index - index of TIMEOUT, or -1 After a successful match by the search() method the following attributes are available: start - index into the buffer, first byte of match end - index into the buffer, first byte after match match - the matching string itself cCsd|_d|_g|_xft|D]X\}}|tkrO||_q(n|tkrj||_q(n|jj||fq(WdS(sThis creates an instance of searcher_string. This argument 'strings' may be a list; a sequence of strings; or the EOF or TIMEOUT types. iN(RR%t_stringst enumerateRRtappend(Rtstringstnts((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyRs       cCsg|jD]}|dd|f^q }|jd |jdkrf|j|jd|jfn|jdkr|j|jd|jfn|jtt|d}dj|S( sUThis returns a human-readable string that represents the state of the object.is %d: %rissearcher_string:s %d: EOFs %d: TIMEOUTis (issearcher_string:(R6R8RR%tsorttlisttziptjoin(Rtnstss((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyt__str__s*    c Csd}x|jD]\}}|dkr<|t| }n| }|j||}|dkr|dksy||kr|}||} } qqW|dkrdS| |_||_|jt|j|_| S(sThis searches 'buffer' for the first occurrence of one of the search strings. 'freshlen' must indicate the number of bytes at the end of 'buffer' which have not been searched before. It helps to avoid searching the same, possibly big, buffer over and over again. See class spawn for the 'searchwindowsize' argument. If there is a match this returns the index of that string, and sets 'start', 'end' and 'match'. Otherwise, this returns -1. iiN(R R6RtfindRRR( RRtfreshlenRt first_matchRR;toffsetR:t best_indext best_match((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyRs  $   N(R3R4t__doc__RRBR R(((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyR5}s  t searcher_recBs,eZdZdZdZddZRS(sVThis is regular expression string search helper for the spawn.expect_any() method. This helper class is for powerful pattern matching. For speed, see the helper class, searcher_string. Attributes: eof_index - index of EOF, or -1 timeout_index - index of TIMEOUT, or -1 After a successful match by the search() method the following attributes are available: start - index into the buffer, first byte of match end - index into the buffer, first byte after match match - the re.match object returned by a successful re.search cCsd|_d|_g|_x{tttt||D]X\}}|tkrd||_q=n|tkr||_q=n|jj ||fq=WdS(sThis creates an instance that searches for 'patterns' Where 'patterns' may be a list or other sequence of compiled regular expressions, or the EOF or TIMEOUT types.iN( RR%t _searchesR>R=trangeRRRR8(RtpatternsR:R;((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyRs   .    cCst}x7|jD],\}}|j|d||jffqW|jd |jdkr|j|jd|jfn|jdkr|j|jd|jfn|jtt|d}dj|S( sUThis returns a human-readable string that represents the state of the object.s %d: re.compile(%r)is searcher_re:is %d: EOFs %d: TIMEOUTis (is searcher_re:( R=RKR8tpatternRR%R<R>R?(RRAR:R;((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyRBs $   c Csd}|dkrd}ntdt||}xt|jD]i\}}|j||}|dkrnq>n|j} |dks| |kr>| }|} |} q>q>W|dkrdS||_| |_|jj|_| S(sThis searches 'buffer' for the first occurrence of one of the regular expressions. 'freshlen' must indicate the number of bytes at the end of 'buffer' which have not been searched before. See class spawn for the 'searchwindowsize' argument. If there is a match this returns the index of that string, and sets 'start', 'end' and 'match'. Otherwise, returns -1.iiN(R R RRKRRRR( RRRDRREt searchstartRR;RR:t the_matchRG((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyRs&         N(R3R4RIRRBR R(((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyRJs  (R(t exceptionsRRtobjectRR5RJ(((s//tmp/pip-build-ViqJzN/pexpect/pexpect/expect.pyts x_