uawdijnntqw1x1x1
IP : 18.119.118.111
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
..
/
lib
/
python2.7
/
site-packages
/
procfs
/
..
/
setuptools
/
package_index.pyc
/
/
� �Yc@sSdZddlZddlZddlZddlZddlZddlZddlmZm Z m Z mZmZm Z mZmZmZmZmZmZmZddlmZddlmZddlmZddlmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)ddlm*Z*dd l+m,Z,dd l-m.Z.ddl-m/Z/ddl0m1Z1ej2d �Z3ej2dej4�Z5ej2d�Z6ej2dej4�j7Z8dj9�Z:ddddgZ;dZ<d�Z=d�Z>e?d�Z@e?d�ZAe?d�ZBe?ee?d�ZCe?d�ZDd�ZEej2dej4�ZFeEd ��ZGd!ejHd" e d#�d$jHfZId%eJfd&��YZKd'eKfd(��YZLdefd)��YZMej2d*�jNZOd+�ZPd,�ZQd-�ZRdd.�ZSd/�ZTejUd0�ZVeSe<�eV�ZVd1�ZWd2�ZXdS(3s#PyPI and direct package downloadingi����N( t CHECKOUT_DISTtDistributiontBINARY_DISTtnormalize_pathtSOURCE_DISTtrequiretEnvironmenttfind_distributionst safe_nametsafe_versiontto_filenametRequirementtDEVELOP_DIST(tssl_support(tlog(tDistutilsError(turllib2thttplibtStringIOt HTTPErrorturlparset urlunparsetunquotet splituserturl2pathnametname2codepointtunichrturljointurlsplitt urlunsplit(tfilterfalse(t translate(thashlib(twraps(tget_all_headerss^egg=([-A-Za-z0-9_.]+)$shref\s*=\s*['"]?([^'"> ]+)s�<a href="([^"#]+)">([^<]+)</a> \s+\(<a (?:title="MD5 hash" \s+)href="[^?]+\?:action=show_md5&digest=([0-9a-f]{32})">md5</a>\)s([-+.a-z0-9]{2,}):s.tar.gz .tar.bz2 .tar .zip .tgztPackageIndextdistros_for_urltparse_bdist_wininsttinterpret_distro_nameicCs�|j�}d\}}}|jd�r�|jd�rL|d }d}q�|jdd�r~|dd!}|d }d}q�|jd �r�|d }d}q�|jdd �r�|dd!}|d }d}q�n|||fS(s=Return (base,pyversion) or (None,None) for possible .exe names.exes .win32.exei����twin32s .win32-pyi�i����i����s.win-amd64.exei�s win-amd64s .win-amd64-pyi��N(NNN(tlowertNonetendswitht startswith(tnameR(tbasetpy_vertplat((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR%,s$ cCs�t|�\}}}}}}t|jd�d�}|dkrk|dkrkt|jd�d�}nd|kr�|jdd�\}}n||fS(Nt/i����ssourceforge.nettdownloadi����t#i(RRtsplit(turltschemetservertpatht parameterstquerytfragmentR-((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytegg_info_for_urlDsccs�t|�\}}xt|||�D]}|Vq%W|r�tj|�}|r�x1t||jd�|dt�D]}|VqqWq�ndS(sEYield egg or source distribution objects that might be found at a URLit precedenceN(R;tdistros_for_locationtEGG_FRAGMENTtmatchR&tgroupR(R4tmetadataR-R:tdistR?((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR$Ls "cCs�|jd�r|d }n|jd�rMd|krMtj|||�gS|jd�r�t|�\}}}|dk r�t||||t|�Snx>tD]6}|j|�r�|t|� }t|||�Sq�WgS(s:Yield egg or source distribution objects based on basenames.egg.zipi����s.eggt-s.exeN( R*Rt from_locationR%R)R&Rt EXTENSIONStlen(tlocationtbasenameRAtwin_baseR.tplatformtext((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR=Xs cCs"tt|�tjj|�|�S(sEYield possible egg or source distribution objects based on a filename(R=RtosR7RH(tfilenameRA((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytdistros_for_filenamemsc cs�|jd�}|s^xFt|d�D]1\}}t|�dkr&|jd�r&dSq&Wnxatdt|�d�D]F}t||dj|| �dj||�d|d|d |�VqxWdS( s�Generate alternative interpretations of a source distro name Note: if `location` is a filesystem filename, you should call ``pkg_resources.normalize_path()`` on it before passing it to this routine! RCiispy2.Nit py_versionR<RJ(R3t enumerateRFR+trangeRtjoin( RGRHRAROR<RJtpartstitp((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR&ts! )ccs�t�}|j}|dkrMxgt|j|�D]}||�|Vq1Wn;x8|D]0}||�}||krT||�|VqTqTWdS(sHList unique elements, preserving order. Remember all elements ever seen.N(tsettaddR)Rt__contains__(titerabletkeytseentseen_addtelementtk((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytunique_everseen�s cst���fd��}|S(ss Wrap a function returning an iterable such that the resulting iterable only ever yields unique items. cst�||��S(N(R_(targstkwargs(tfunc(s</usr/lib/python2.7/site-packages/setuptools/package_index.pytwrapper�s(R!(RbRc((Rbs</usr/lib/python2.7/site-packages/setuptools/package_index.pyt unique_values�ss(<([^>]*\srel\s*=\s*['"]?([^'">]+)[^>]*)>ccsx�tj|�D]�}|j�\}}tttj|j�jd���}d|ksgd|krx7t j|�D]#}t |t|jd���VqwWqqWxdd D]\}|j |�}|dkr�t j||�}|rt |t|jd���Vqq�q�WdS( sEFind rel="homepage" and rel="download" links in `page`, yielding URLst,thomepageR1is <th>Home Pages<th>Download URLi����N(s <th>Home Pages<th>Download URL(tRELtfinditertgroupsRVtmaptstrtstripR(R3tHREFRt htmldecodeR@tfindtsearch(R4tpageR?ttagtreltrelstpos((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytfind_external_links�s'( sPython-urllib/%s setuptools/%sit setuptoolsitContentCheckercBs)eZdZd�Zd�Zd�ZRS(sP A null content checker that defines the interface for checking content cCsdS(s3 Feed a block of data to the hash. N((tselftblock((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytfeed�scCstS(sC Check the hash. Return False if validation fails. (tTrue(Ry((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytis_valid�scCsdS(su Call reporter with information about the checker (hash name) substituted into the template. N((Rytreporterttemplate((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytreport�s(t__name__t __module__t__doc__R{R}R�(((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyRx�s tHashCheckercBsJeZejd�Zd�Zed��Zd�Zd�Z d�Z RS(sK(?P<hash_name>sha1|sha224|sha384|sha256|sha512|md5)=(?P<expected>[a-f0-9]+)cCsO||_|dkr0tj|dt�|_ntj|�|_||_dS(Ntmd5tusedforsecurity(t hash_nameR tnewtFalsethashtexpected(RyR�R�((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt__init__�s cCsLt|�d}|st�S|jj|�}|s<t�S||j��S(s5Construct a (possibly null) ContentChecker from a URLi����(RRxtpatternRpt groupdict(tclsR4R:R?((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytfrom_url�scCs|jj|�dS(N(R�tupdate(RyRz((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR{�scCs|jj�|jkS(N(R�t hexdigestR�(Ry((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR}�scCs||j}||�S(N(R�(RyR~Rtmsg((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�s (R�R�tretcompileR�R�tclassmethodR�R{R}R�(((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��s cBsveZdZdd%d&ed�Zed�Zed�Zed�Z d�Z d�Zd �Zd �Z d&d�Zd�Zd&d �Zd�Zd�Zd�Zd�Zd�Zeeed&d�Zeed�Zd�ZdZd�Zd�Zd&d�Zd�Zd�Zd�Zd�Z d�Z!e"ed��Z#d �Z$d!�Z%d"�Z&d#�Z'd$�Z(RS('s;A distribution index that scans web pages for download URLsshttps://pypi.python.org/simplet*cOs�tj|||�|d|jd� |_i|_i|_i|_tjdj t t|���j|_ g|_|r�tjr�|s�tj�r�tj|�|_ntj|_dS(NR0t|(RR�R*t index_urltscanned_urlstfetched_urlst package_pagesR�R�RRRjRR?tallowstto_scanR tis_availabletfind_ca_bundlet opener_fortopenerRturlopen(RyR�thostst ca_bundlet verify_sslR`tkw((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR� s ' !c CsU||jkr|rdSt|j|<t|�sD|j|�dStt|��}|r�|j|�sodS|jd|�n|s�|s�||jkr�tt |j |��dS|j|�s�t|j|<dS|jd|�t|j|<|j|d|�}|dkrdSt|j|j<d|jjdd�j�krZ|j�dS|j}|j�}t|t�s�t|t�r�d}n|jjd �p�d}|j|d �}n|j�xBtj|�D]1}t|t|jd���} |j| �q�W|j|j �rQt!|dd�d krQ|j"||�}ndS(s<Evaluate a URL as a possible download, and maybe retrieve itNsFound link: %ss Reading %ss<Download error on %s: %%s -- Some packages may not be found!thtmlscontent-typetslatin-1tcharsettignoreitcodei�(#R�R|t URL_SCHEMEtprocess_filenametlistR$turl_oktdebugR�RjRWtinfotopen_urlR)R4theaderstgetR(tclosetreadt isinstanceRkRt get_paramtdecodeRmRhRRnR@tprocess_urlR+R�tgetattrt process_index( RyR4tretrievetdiststfR-RqR�R?tlink((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�sN ! *cCs�tjj|�s&|jd|�dStjj|�r�|r�tjj|�}x9tj|�D]%}|jtjj||�t �qaWnt |�}|r�|jd|�tt |j|��ndS(Ns Not found: %ss Found: %s(RLR7texiststwarntisdirtrealpathtlistdirR�RRR|RNR�R�RjRW(RytfntnestedR7titemR�((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�Is&cCs}t|�}|r-|jd�j�dksF|jt|�d�rJtSd}|rit||��n|j||�dS(Nitfiles, Link to % s ***BLOCKED*** by --allow-hosts (R�R@R(R�RR|RR�(RyR4tfataltsR�((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�Ys:cCsfx_|D]W}tjj|�rx<tj|�D](}|jd�r/|j||�q/q/WqqWdS(Ns .egg-link(RLR7R�R�R*t scan_egg_link(Rytsearch_pathR�tentry((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytscan_egg_linkscs cCs�gttjttjj||���D]}|r(|^q(}t|�dkr�xXttjj||d��D]4}tjj||�|_ t |_|j|�qrWndS(Nii( RjRkRltopenRLR7RRRFRRGRR<RW(RyR7R�t_ftlinesRB((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�js4& c s�fd�}xQtj|�D]@}y&|t|t|jd����Wqtk r^qXqW||�\}}|r xyt||�D]h}t|�\}} |jd�r�| r�|r�|d||f7}q��j |�n�j |�q�Wtjd�|�SdSdS(s#Process the contents of a PyPI pagecs�|j�j�r�ttt|t�j�jd���}t|�dkr�d|dkr�t|d�}t|d�}t �j j|j�i�|<t |�t |�fSndS(NR0iR2ii(NN(R+R�R�RjRRFR3RR R|R�t setdefaultR(R R)(R�RStpkgtver(Ry(s</usr/lib/python2.7/site-packages/setuptools/package_index.pytscanus%"is.pys #egg=%s-%scSsd|jddd�S(Ns<a href="%s#md5=%s">%s</a>iii(R@(tm((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt<lambda>�sR�N( RmRhRRnR@t ValueErrorRvR;R*tneed_version_infotscan_urltPYPI_MD5tsub( RyR4RqR�R?R�R�tnew_urlR-tfrag((Rys</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�ss$& cCs|jd|�dS(NsPPage at %s links to .py file(s) without version info; an index scan is required.(tscan_all(RyR4((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��scGsO|j|jkr;|r+|j||�n|jd�n|j|j�dS(Ns6Scanning index of all packages (this may take a while)(R�R�R�R�R�(RyR�R`((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��s cCs�|j|j|jd�|jj|j�sN|j|j|jd�n|jj|j�ss|j|�nx3t|jj|jd��D]}|j|�q�WdS(NR0(( R�R�tunsafe_nameR�R�RZtproject_nametnot_found_in_indexR�(RytrequirementR4((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt find_packages�s%cCsk|j�|j|�x8||jD])}||kr;|S|jd||�q%Wtt|�j||�S(Ns%s does not match %s(tprescanR�RZR�tsuperR#tobtain(RyR�t installerRB((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��s cCsi|j|jd|�|j�se|j�tj|�td|jjtj j |�f��ndS(s- checker is a ContentChecker sValidating %%s checksum for %ss7%s validation failed for %s; possible download problem?N(R�R�R}R�RLtunlinkRR�R,R7RH(RytcheckerRMttfp((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt check_hash�s cCsrxk|D]c}|jdksJt|�sJ|jd�sJtt|��rZ|j|�q|jj|�qWdS(s;Add `urls` to the list that will be prescanned for searchessfile:N(R�R)R�R+R�R$R�tappend(RyturlsR4((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytadd_find_links�s cCs2|jr%tt|j|j��nd|_dS(s7Scan urls scheduled for prescanning (e.g. --find-links)N(R�R�RjR�R)(Ry((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��s cCsN||jr |jd}}n|jd}}|||j�|j�dS(Ns#Couldn't retrieve index page for %rs3Couldn't find index page for %r (maybe misspelled?)(RZR�R�R�R�(RyR�tmethR�((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��s cCs�t|t�s�t|�}|r||j|jd�||�}t|�\}}|jd�rx|j|||�}n|Stj j |�r�|Sytj|�}Wq�tk r�t d|f��q�Xnt|j||�dd�S(sLocate and/or download `spec` to `tmpdir`, returning a local path `spec` may be a ``Requirement`` object, or a string containing a URL, an existing local filename, or a project/version requirement spec (i.e. the string form of a ``Requirement`` object). If it is the URL of a .py file with an unambiguous ``#egg=name-version`` tag (i.e., one that escapes ``-`` as ``_`` throughout), a trivial ``setup.py`` is automatically created alongside the downloaded file. If `spec` is a ``Requirement`` object or a string containing a project/version requirement spec, this method returns the location of a matching distribution (possibly after downloading it to `tmpdir`). If `spec` is a locally existing file or directory name, it is simply returned unchanged. If `spec` is a URL, it is downloaded to a subpath of `tmpdir`, and the local filename is returned. Various errors may be raised if a problem occurs during downloading. is.pys1Not a URL, existing file, or requirement spec: %rRGN(R�RR�t _download_urlR@R;R*t gen_setupRLR7R�tparseR�RR�tfetch_distributionR)(RytspecttmpdirR5tfoundR-R:((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR1�s" c sK�jd|�i�d}d����fd�}|rc�j��j|�||�}n|dk r�|p�|||�}n|dkr��jdk r��j�||�}n|dkr�|r��j|�||�}n|dkr�jd�rdpd|�n/�jd|�|jd�j|j|��SdS( s|Obtain a distribution suitable for fulfilling `requirement` `requirement` must be a ``pkg_resources.Requirement`` instance. If necessary, or if the `force_scan` flag is set, the requirement is searched for in the (online) package index as well as the locally installed packages. If a distribution matching `requirement` is found, the returned distribution's ``location`` is the value you would have gotten from calling the ``download()`` method with the matching distribution's URL or filename. If no matching distribution is found, ``None`` is returned. If the `source` flag is set, only source distributions and source checkout links will be considered. Unless the `develop_ok` flag is set, development and system eggs (i.e., those using the ``.egg-info`` format) will be ignored. sSearching for %scs�|dkr�}nx�||jD]q}|jtkrn�rn|�kr#�jd|�d�|<q#q#n||kr#|jtks��r#|Sq#WdS(Ns&Skipping development or system egg: %si(R)RZR<RR�R(treqtenvRB(t develop_okRytskippedtsource(s</usr/lib/python2.7/site-packages/setuptools/package_index.pyRo1s "s2No local packages or download links found for %s%ssa source distribution of R�sBest match: %sRGN( R�R)R�R�R�R�tcloneR1RG( RyR�R�t force_scanR�R�tlocal_indexRBRo((R�RyR�R�s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�s. cCs/|j||||�}|dk r+|jSdS(s3Obtain a file suitable for fulfilling `requirement` DEPRECATED; use the ``fetch_distribution()`` method now instead. For backward compatibility, this routine is identical but returns the ``location`` of the downloaded distribution instead of a distribution object. N(R�R)RG(RyR�R�RR�RB((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytfetch[scCsqtj|�}|rLgt||jd�d�D]}|jr1|^q1pOg}t|�dkrBtjj |�}tjj |�|kr�tjj||�}ddlm } | ||�s�tj||�|}q�nttjj|d�d�} | jd|dj|djtjj|�df�| j�|S|ratd||f��ntd ��dS( Nii����(tsamefilessetup.pytwsIfrom setuptools import setup setup(name=%r, version=%r, py_modules=[%r]) is�Can't unambiguously interpret project/version identifier %r; any dashes in the name or version should be escaped using underscores. %rspCan't process plain .py files without an '#egg=name-version' suffix to enable automatic setup script generation.(R>R?R&R@R)tversionRFRLR7RHtdirnameRRtsetuptools.command.easy_installRtshutiltcopy2R�twriteR�tsplitextR�R(RyRMR:R�R?tdR�RHtdstRR�((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�hs44 i c Cs�|jd|�d \}}}zItj|�}|j|�}t|t�rqtd||j|j f��n|j�}d}|j } d} d|kr�t|d�}tt t|��} |j|||| | �nt|d�}x`trO|j| �}|rK|j|�|j|�|d7}|j|||| | �q�Pq�W|j|||�|SWd|r~|j�n|r�|j�nXdS( NsDownloading %ssCan't download %s: %s %sii����scontent-lengthsContent-Lengthtwbi(NNN(R�R)R�R�R�R�RRR�R�tdl_blocksizeR"tmaxRjtintt reporthookR�R|R�R{R R�R�( RyR4RMtfpR�R�R�R�tblocknumtbstsizetsizesRz((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt_download_to�s> cCsdS(N((RyR4RMRtblksizeR((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�scCs�|jd�rt|�Syt||j�SWn�ttjfk r�tj�d}dj g|j D]}t|�^qf�}|r�|j||�q�t d||f��n'tjk r�tj�d}|Stjk r/tj�d}|r|j||j�q�t d||jf��n�tjk r�tj�d}|rk|j||j�q�t d||jf��nStjk r�tj�d}|r�|j||�q�t d||f��nXdS(Nsfile:it s%s %ssDownload error for %s: %ss;%s returned a bad status line. The server might be down, %s(R+t local_opentopen_with_authR�R�Rt InvalidURLtsystexc_infoRRR`RkR�RRRtURLErrortreasont BadStatusLinetlinet HTTPException(RyR4twarningtvtargR�((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��s@ +cCs<t|�\}}|rLx7d|krH|jdd�jdd�}qWnd}|jd�rn|d }ntjj||�}|dks�|jd �r�|j||�S|d ks�|jd�r�|j||�S|jd�r�|j ||�S|d krt t|�d�S|j|t �|j||�SdS(Ns..t.s\t_t__downloaded__s.egg.zipi����tsvnssvn+tgitsgit+shg+R�i(R;treplaceR*RLR7RRR+t _download_svnt _download_gitt_download_hgRRR�R|t_attempt_download(RyR5R4R�R,R:RM((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��s$% cCs|j|t�dS(N(R�R|(RyR4((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR��scCsK|j||�}d|jdd�j�krC|j|||�S|SdS(NR�scontent-typeR�(RR�R(t_download_html(RyR4RMR�((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR1scCs�t|�}xW|D]O}|j�rtjd|�r^|j�tj|�|j||�SPqqW|j�tj|�td|��dS(Ns <title>([^- ]+ - )?Revision \d+:sUnexpected HTML page found at ( R�RlR�RpR�RLR�R.R(RyR4R�RMR�R#((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR2 s c CsT|jdd�d}d}|j�jd�r#d|kr#t|�\}}}}}} |r#|jd�r#d|d kr#|d jdd�\}}t|�\} }| r d | kr�| jd d�\}} d|| f}n d| }|}t|||||| f�}q q#n|jd ||�tjd|||f�|S(NR2iiR�ssvn:t@s//R0it:s --username=%s --password=%ss --username=s'Doing subversion checkout from %s to %sssvn checkout%s -q %s %s( R3R(R+RRRR�RLtsystem(RyR4RMtcredsR5tnetlocR7RUtqR�tauththosttusertpw((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR.s"!& 'cCs�t|�\}}}}}|jdd�d}|jdd�d}d}d|krt|jdd�\}}nt||||df�}||fS(Nt+ii����R2iR3R�(RR3R)trsplitR(R4t pop_prefixR5R7R7R9R�trev((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt_vcs_split_rev_from_url,scCs�|jdd�d}|j|dt�\}}|jd||�tjd||f�|dk r�|jd|�tjd||f�n|S( NR2iiR?sDoing git clone from %s to %ssgit clone --quiet %s %ssChecking out %ss"(cd %s && git checkout --quiet %s)(R3RAR|R�RLR5R)(RyR4RMR@((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR/>s cCs�|jdd�d}|j|dt�\}}|jd||�tjd||f�|dk r�|jd|�tjd||f�n|S( NR2iiR?sDoing hg clone from %s to %sshg clone --quiet %s %ssUpdating to %ss(cd %s && hg up -C -r %s >&-)(R3RAR|R�RLR5R)(RyR4RMR@((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR0Ns cGstj||�dS(N(RR�(RyR�R`((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�^scGstj||�dS(N(RR�(RyR�R`((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�ascGstj||�dS(N(RR�(RyR�R`((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�ds(R�N()R�R�R�R)R|R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R1R�RR�RRRR�R�R�R1R2R.tstaticmethodRAR/R0R�R�R�(((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR#sL 0 * )A * $ ( s!&(#(\d+|x[\da-fA-F]+)|[\w.:-]+);?cCs3t|t�s|S|dkr)t|�St|�S(Ni�(R�RRtchr(tc((s</usr/lib/python2.7/site-packages/setuptools/package_index.pytuchrks cCs{|jd�}|jd�r4t|dd�}n=|jd�rVt|d�}ntj||jd��}t|�S(Nis#xiiR2i(R@R+RRR�RE(R?twhat((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt decode_entityqscCs tt|�S(s'Decode HTML entities in the given text.(t entity_subRG(ttext((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyRn{scs�fd�}|S(Ncs��fd�}|S(Ncs?tj�}tj��z�||�SWdtj|�XdS(N(tsockettgetdefaulttimeouttsetdefaulttimeout(R`Ratold_timeout(Rbttimeout(s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt_socket_timeout�s ((RbRO(RN(Rbs</usr/lib/python2.7/site-packages/setuptools/package_index.pyRO�s((RNRO((RNs</usr/lib/python2.7/site-packages/setuptools/package_index.pytsocket_timeouts cCs=t|�}|j�}tj|�}|j�}|j�S(s� A function compatible with Python 2.3-3.3 that will encode auth from a URL suitable for an HTTP header. >>> _encode_auth('username%3Apassword') u'dXNlcm5hbWU6cGFzc3dvcmQ=' (Rtencodetbase64tencodestringR�trstrip(R9tauth_st auth_bytest encoded_bytestencoded((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt_encode_auth�s cCsQt|�\}}}}}}|jd�r?tjd��n|dkr`t|�\}} nd }|r�dt|�}t|| ||||f�} tj | �}|j d|�ntj |�}|j dt�||�}|rMt|j�\} }}}}}| |krM|| krMt| |||||f�|_qMn|S( s4Open a urllib2 request, handling HTTP authenticationR4snonnumeric port: ''thttpthttpssBasic t Authorizations User-Agent(RZR[N( RR*RRRR)RYRRtRequestt add_headert user_agentR4(R4R�R5R7R7tparamsR9R�R9R:R�trequestRts2th2tpath2tparam2tquery2tfrag2((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�s&!'cCs|S(N((R4((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt fix_sf_url�scCsot|�\}}}}}}t|�}tjj|�rItj|�S|jd�r=tjj|�r=g}x�tj |�D]�} | dkr�t tjj|| �d�} | j�}| j �Pn.tjjtjj|| ��r�| d7} n|jd| | f�q�Wd|ddj|�}d\}} nd\}} }t||| id d6t|��S(s7Read a local path, with special support for directoriesR0s index.htmltrbs<a href=%r>%s</a>s<html><head><title>%s</title>s</head><body>%s</body></html>s i�tOKi�sPath not founds Not founds text/htmlscontent-type(i�Rj(i�sPath not founds Not found(RRRLR7tisfileRR�R*R�R�R�RRR�R�R�RR(R4R5R6R7tparamR9R�RMtfilesR�Rtbodytstatustmessage((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyR�s* ! ! (YR�RRLR�RRJRRt pkg_resourcesRRRRRRRRRR R RRRwR t distutilsRtdistutils.errorsRtsetuptools.compatRRRRRRRRRRRRRRRtfnmatchRtsetuptools.py24compatR R!tsetuptools.py27compatR"R�R>tIRmR�R?R�R3REt__all__t_SOCKET_TIMEOUTR%R;R)R$R=RNR&R_RdRgRvRR_tobjectRxR�R#R�RHRERGRnRPRYR�RRhR(((s</usr/lib/python2.7/site-packages/setuptools/package_index.pyt<module>sjX^ " !$��d $
/home/../lib/python2.7/site-packages/procfs/../setuptools/package_index.pyc