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@sddlZddlZddlZddlZddlZddlZyeWnek rlejZnXej ddkre fZ n e e fZ dZ ddZdZddZddZdS( iNiicCstjj|}tjj|s(tStj|j}tjj dr}tj dkr}t |tj tj BtjB@Stj|tjS(sChecks that path is an executable regular file, or a symlink towards one. This is roughly ``os.path isfile(path) and os.access(path, os.X_OK)``. tsunosi(tostpathtrealpathtisfiletFalsetstattst_modetsystplatformt startswithtgetuidtbooltS_IXUSRtS_IXGRPtS_IXOTHtaccesstX_OK(Rtfpathtmode((s./tmp/pip-build-ViqJzN/pexpect/pexpect/utils.pytis_executable_files  cCstjj|dkr(t|r(|S|dkr@tj}n|jd}|satj}n|jtj }x3|D]+}tjj ||}t|rz|SqzWdS(sThis takes a given filename; tries to find it in the environment path; then checks if it is executable. This returns the full path to the filename if found and executable. Otherwise this returns None.ttPATHN( RRtdirnameRtNonetenvirontgettdefpathtsplittpathseptjoin(tfilenametenvtptpathlistRtff((s./tmp/pip-build-ViqJzN/pexpect/pexpect/utils.pytwhich0s$     c Csg}d}d}d}d}d}d}|}x.|D]&} ||ksU||kr| dkrj|}q]| dkr|}q]| d kr|}q]| jr||krd q|j|d}|}q]|| }|}q7||kr|| }|}q7||kr/| dkr"|}q]|| }q7||kr7| d krP|}q]|| }q7q7W|dkr}|j|n|S( sThis splits a command line into a list of arguments. It splits arguments on spaces, but handles embedded quotes, doublequotes, and escaped characters. It's impossible to do this with a regular expression, so I wrote a little state machine to parse the command line. Riiiiis\t't"N(tisspaceRtappend( t command_linetarg_listtargt state_basict state_esctstate_singlequotetstate_doublequotetstate_whitespacetstatetc((s./tmp/pip-build-ViqJzN/pexpect/pexpect/utils.pytsplit_command_lineEsL                        cCs|dk rtj|}nxtrytj||||SWq"tk rtjd}|jdtj kr|dk r|tj}|dkrgggfSqqq"Xq"WdS(sThis is a wrapper around select.select() that ignores signals. If select.select raises a select.error exception and errno is an EINTR error then it is ignored. Mainly this is used to ignore sigwinch (terminal resize). iiN( RttimetTruetselecttInterruptedErrorRtexc_infotargsterrnotEINTR(tiwtdtowtdtewtdttimeouttend_timeterr((s./tmp/pip-build-ViqJzN/pexpect/pexpect/utils.pytselect_ignore_interruptss     c Cs0|dk rtj|}ntj}x6|D].}|j|tjtjBtjBtjBq2Wxt r+yL|dkrdn|d}|j|}g|D]\}}|^qSWqgt k r't j d} | j dtjkr!|dk r$|tj}|dkrgSq$q(qgXqgWdS(sOSimple wrapper around poll to register file descriptors and ignore signals.iiiN(RR4R6tpolltregistertPOLLINtPOLLPRItPOLLHUPtPOLLERRR5R7RR8R9R:R;( tfdsR?R@tpollertfdt timeout_mstresultstafdt_RA((s./tmp/pip-build-ViqJzN/pexpect/pexpect/utils.pytpoll_ignore_interruptss$   , !    (RRRR6R4R:R7t NameErrorterrort version_infotstrt string_typestunicodeRRR$R3RBRP(((s./tmp/pip-build-ViqJzN/pexpect/pexpect/utils.pyts"             =