�PNG  IHDR��;���IDATx��ܻn�0���K�� �)(�pA��� ���7�LeG{�� �§㻢|��ذaÆ 6lذaÆ 6lذaÆ 6lom��$^�y���ذag�5bÆ 6lذaÆ 6lذa{���� 6lذaÆ �`����}H�Fkm�,�m����Ӫ���ô�ô!� �x�|'ܢ˟;�E:���9�&ᶒ�}�{�v]�n&�6� �h��_��t�ڠ͵-ҫ���Z;��Z$�.�P���k�ž)�!��o���>}l�eQfJ�T��u і���چ��\��X=8��Rن4`Vw�l�>����n�G�^��i�s��"ms�$�u��i��?w�bs[m�6�K4���O���.�4��%����/����b�C%��t ��M�ז� �-l�G6�mrz2���s�%�9��s@���-�k�9�=���)������k�B5����\��+͂�Zsٲ ��Rn��~G���R���C����� �wIcI��n7jJ���hۛNCS|���j0��8y�iHKֶۛ�k�Ɉ+;Sz������L/��F�*\��Ԕ�#"5��m�2��[S��������=�g��n�a�P�e�ғ�L�� lذaÆ 6l�^k��̱aÆ 6lذaÆ 6lذa;���� �_��ذaÆ 6lذaÆ 6lذaÆ ���R���IEND�B` � b-�QcF@sP dZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z yddl m Z m Z Wn'e k r�ddlm Z m Z nXyeWn!ek r�ddlmZnXy0ed�ZddlmZeed�ZWnWek rweZddlmZed �Zeed �ZddlZejZnXdd lm Z y&dd lm!Z!m"Z"m#Z#e$Z%Wne k r�e&Z%nXdd lm'Z(ddl)m*Z*m+Z+ej,ddfkoej-j.dkr'ddl/j0Z1neZ1yddl2Z2Wne k rPnXdd�Z3iZ4d�Z5d�Z6d�Z7d�Z8d�Z9d�Z:d�Z;d�Z<�Z=d�Z>ddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<�d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`gEZ?d7e@fda��YZAd8eAfdb��YZBd9eAfdc��YZCd:eAfdd��YZDiZEejFd ZGdZHdeZIdfZJdgZKdZLdh�ZMdi�ZNgdj�ZOdk�ZPdl�ZQejRdm�ZSejRdn�ZTeQZUdo�ZVdp�ZWeWZXdq�ZYdr�ZZeds�Z[dt�Z\dOfdu��YZ]dPe]fdv��YZ^d2e_fdw��YZ`d1e_fdx��YZaeaZbd;ecfdy��YZdd3fdz��YZed{�Zfd|�Zgd}�Zhd~�Zid�Zjid�gd�6d�gd�6d�d�d�gd�6gd�6gd�6gd�6Zkid��d�6d��d�6d��d�6d��d�6d��d�6d��d�6d��d�6Zld��Zmd��Znd��Zoeid��Zpd��Zqd�er�kr0eqZpndVfd���YZseMe_es�dWesfd���YZtdXetfd���YZueMeve�eu�e1ek r�eMe1jweu�ndTesfd���YZxex�Zyd��ZzdYetfd���YZ{eMej|e{�dQexfd���YZ}dReufd���YZ~dSe{fd���YZd�fd���YZ�d�fd���YZ�d��Z�ydd�l�m�Z�m�Z�Wne k r�n Xe�Z�[�[�e5d�d�i�d��Z�e&d��Z�e&d��Z�e�ej|e��e&d��Z�e�e_e��e&d��Z�e�e�e��e1ek r9e�e1j�e��ne5d�d�i�e5d�d�i�d��Z�d��Z�d��Z�ed��Z�d��Z�e�e�e��e�ej|e��e1ek r�e�e1j�e��nd��Z�e�e_e��d��Z�id��Z�d��Z�d��Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd�ej�ej�B�j�Z�ejRd�ej��Z�id�d�6d�d�6d�d�6d�d�6d�d�6j�Z�d��Z�d��Z�d6e_fd���YZ�d��Z�d4e_fd���YZ�d�e�fd���YZ�ie�d�6e�d�6e�d�6Z�d��Z�d��Z�d��Z�d5fd���YZ�id�d�6d�d�6d�d�6d�d�6d�d�6d�d�6Z�d��Z�d��Z�d��Z�d��Z�d��Z�ee�Z�d��Z�e�er��e5d�d+e`��ydd�l�m�Z�Wne k rN n�Xye�j�e��Wn�eBk r� e`g�Z�x0e�j�e�e��ea��D]Z�e�j�e��q� Wx0ej�D]%Z�e�e�j�kr� e�j�e��nq� We�j�ej�(nXe�j�Z�e�j�Z�e�j�Z�e�jWZWeWZXe�d���ge�_�e�e�e�j�ej���dS(�sYPackage resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path operations to manipulate resource names being passed into the API. The package resource API is designed to work with normal filesystem packages, .egg files, and unpacked .egg files. It can also work in a limited way with .zip files and with custom PEP 302 loaders that support the ``get_data()`` method. i����N(turlparset urlunparse(t ImmutableSetcCs |j�S(N(tnext(to((s1/usr/lib/python2.7/site-packages/pkg_resources.pyts(tStringIOcBsc|dkrBejd�}|j}|dkr<�|j}n~n|dkrW|}nddUdS(Nisexec code in globs, locs(tNonetsyst _getframet f_globalstf_locals(tcodetglobstlocstframe((s1/usr/lib/python2.7/site-packages/pkg_resources.pytexec_ s      (tBytesIOtexeccCsY|dkrt�}n|dkr-|}nttt|�j�|d�||�dS(NR(RtglobalsRtcompiletopentread(tfnR R((s1/usr/lib/python2.7/site-packages/pkg_resources.pytexecfile.s     (tutime(tmkdirtrenametunlink(R(tisdirtsplititcpythoni�cCs^tstd��nt|�\}}|rZ|rZt|� rZt|�t||�ndS(Ns*"os.mkdir" not supported on this platform.(t WRITE_SUPPORTtIOErrorRRt_bypass_ensure_directoryR(tnametmodetdirnametfilename((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR"Ns  cKs>t�}x.|j�D] \}}|||<|t|(tself((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__repr__�s(R�t __module__t__doc__R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRg�scBseZdZRS(sAAn already-installed version conflicts with the requested version(R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRh�scBseZdZRS(s&A requested distribution was not found(R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRi�scBseZdZRS(s>Distribution doesn't have an "extra feature" of the given name(R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRj�siiicCs|t|eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCsdS(s;Does the package's distribution contain the named metadata?N((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt has_metadata�scCsdS(s'The named metadata resource as a stringN((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt get_metadata�scCsdS(s�Yield named metadata resource as list of non-blank non-comment lines Leading and trailing whitespace is stripped from each line, and lines with ``#`` as the first non-blank character are omitted.N((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_metadata_lines�scCsdS(s>Is the named metadata a directory? (like ``os.path.isdir()``)N((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pytmetadata_isdir�scCsdS(s?List of metadata names in the directory (like ``os.listdir()``)N((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pytmetadata_listdir�scCsdS(s=Execute the named script in the supplied namespace dictionaryN((R�t namespace((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRM�s(R�R�R�R�R�R�R�RM(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�s      cBsDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s3An object that provides access to package resourcescCsdS(sdReturn a true filesystem path for `resource_name` `manager` must be an ``IResourceManager``N((tmanagert resource_name((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_resource_filename�scCsdS(siReturn a readable file-like object for `resource_name` `manager` must be an ``IResourceManager``N((R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_resource_stream�scCsdS(smReturn a string containing the contents of `resource_name` `manager` must be an ``IResourceManager``N((R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_resource_string�scCsdS(s,Does the package contain the named resource?N((R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt has_resource�scCsdS(s>Is the named resource a directory? (like ``os.path.isdir()``)N((R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRY�scCsdS(s?List of resource names in the directory (like ``os.listdir()``)N((R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRW�s( R�R�R�R�R�R�R�RYRW(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s     cBs�eZdZdd�Zd�Zd�Zd�Zdd�Zd�Z d�Z de d�Z ddd �Z dde d �Zd �Zd �Zd �Zd�Zd�ZRS(sDA collection of active distributions on sys.path (or a similar list)cCs^g|_i|_i|_g|_|dkr<�tj}nx|D]}|j|�qCWdS(s?Create working set from list of path entries (default=sys.path)N(tentriest entry_keystby_keyt callbacksRRR�t add_entry(R�R�tentry((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__init__�s       cCsT|jj|g�|jj|�x*t|t�D]}|j||t�q3WdS(s�Add a path item to ``.entries``, finding any distributions on it ``find_distributions(entry, True)`` is used to find distributions corresponding to the path entry, and they are added. `entry` is always appended to ``.entries``, even if it is already present. (This is because ``sys.path`` can contain the same value more than once, and the ``.entries`` of the ``sys.path`` WorkingSet should always equal ``sys.path``.) N(R�t setdefaultR�R�R]R�taddR�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cCs|jj|j�|kS(s9True if `dist` is the active distribution for its project(R�R�R9(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt __contains__�scCsG|jj|j�}|dk r?||kr?t||��n|SdS(s�Find a distribution matching requirement `req` If there is an active distribution for the requested project, this returns it as long as it meets the version requirement specified by `req`. But, if there is an active distribution for the project and it does *not* meet the `req` requirement, ``VersionConflict`` is raised. If there is no active distribution for the requested project, ``None`` is returned. N(R�R�R9RRh(R�treqR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s ccsgx`|D]X}|j|�}|dkrGx4|j�D] }|Vq5Wq||kr||VqqWdS(sYield entry point objects from `group` matching `name` If `name` is None, yields all entry points in `group` from all distributions in the working set, otherwise only ones matching both `group` and `name` are yielded (in distribution order). N(RQRtvalues(R�RGR#R�R�tep((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRSs    cCsQtjd�j}|d}|j�||d<|j|�dj||�dS(s?Locate distribution for `requires` and run `script_name` scriptiR�iN(RR R R7RLRM(R�trequiresR�R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRMs    ccspi}xc|jD]X}||jkr+qnx:|j|D]+}||kr9d||<|j|Vq9q9WqWdS(s�Yield distributions for non-duplicate projects in the working set The yield order is the order in which the items' path entries were added to the working set. iN(R�R�R�(R�tseentitemR9((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__iter__ s  cCs�|r|j|j|�n|dkr4|j}n|jj|g�}|jj|jg�}|j|jkrwdS||j|j<|j|kr�|j|j�n|j|kr�|j|j�n|j |�dS(s�Add `dist` to working set, associated with `entry` If `entry` is unspecified, it defaults to the ``.location`` of `dist`. On exit from this routine, `entry` is added to the end of the working set's ``.entries`` (if it wasn't already present). `dist` is only added to the working set if it's for a project that doesn't already have a distribution in the set. If it's added, any callbacks registered with the ``subscribe()`` method will be called. N( t insert_onR�RtlocationR�R�R9R�R�t _added_new(R�R�R�tinserttkeystkeys2((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�1s   c CsVt|�ddd�}i}i}g}x$|rQ|jd�}||krUq.n|j|j�}|dkr|jj|j�}|dkr�|dkr�t|j�}n|j|||�}||j<|dkr�t |��q�n|j |�n||krt ||��n|j |j |j�ddd��t||tchmod(R�ttempnameR&R$((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt postprocess1scCs%|jrtd��n||_dS(s�Set the base path where resources will be extracted to, if needed. If you do not call this routine before any extractions take place, the path defaults to the return value of ``get_default_cache()``. (Which is based on the ``PYTHON_EGG_CACHE`` environment variable, with various platform-specific fallbacks. See that routine's documentation for more details.) Resources are extracted to subdirectories of this path based upon information given by the ``IResourceProvider``. You may set this to a temporary directory, but then you must call ``cleanup_resources()`` to delete the extracted files when done. There is no guarantee that ``cleanup_resources()`` will be able to remove all extracted files. (Note: you may not change the extraction path for a given resource manager once resources have been extracted, unless you first call ``cleanup_resources()``.) s5Can't change extraction path, files already extractedN(R,RHR.(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR^Zs  cCsdS(sB Delete all extracted resource files and directories, returning a list of the file and directory names that could not be successfully removed. This function does not have any concurrency protection, so it should generally only be called when the extraction path is a temporary directory exclusive to a single process. This method is not automatically called; you must call it explicitly or register it as an ``atexit`` function if you wish to ensure cleanup of a temporary directory used for extractions. N((R�tforce((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR_tsN((R�R�R�RR.R�RXRYRVRURTRWR3R9t staticmethodR4RHR^R�R_(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRc�s        ) ) ) cCsytjdSWntk r"nXtjdkrBtjjd�Sd}dd|fd|fd|fdd|fg}x�|D]�\}}d }xn|D]5}|tjkr�tjj|tj|�}q�Pq�W|r�tjj||�}ntjj|d �SqWtd ��dS(s Determine the default cache location This returns the ``PYTHON_EGG_CACHE`` environment variable, if set. Otherwise, on Windows, it returns a "Python-Eggs" subdirectory of the "Application Data" directory. On all other systems, it's "~/.python-eggs". tPYTHON_EGG_CACHER:s~/.python-eggssApplication DatatAPPDATAt USERPROFILEt HOMEDRIVEtHOMEPATHtHOMEtWINDIRR�s Python-Eggss3Please set the PYTHON_EGG_CACHE enviroment variableN(sAPPDATA((sAPPDATAN(RM(RNRO(RO(sHOME((sHOMEN(RQ( R�R<R�R#R�t expanduserRREt RuntimeError(tapp_datat app_homesR�tsubdirR%R9((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR`�s0     cCstjdd|�S(s�Convert an arbitrary string to a standard distribution name Any runs of non-alphanumeric/. characters are replaced with a single '-'. s[^A-Za-z0-9.]+t-(tretsub(R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRn�scCs%|jdd�}tjdd|�S(s�Convert an arbitrary string to a standard version string Spaces become dots, and all other non-alphanumeric characters become dashes, with runs of multiple dashes condensed to a single dash. R�R@s[^A-Za-z0-9.]+RW(R�RXRY(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRo�scCstjdd|�j�S(s�Convert an arbitrary string to a standard 'extra' name Any runs of non-alphanumeric characters are replaced with a single '_', and the result is always lowercased. s[^A-Za-z0-9.]+R�(RXRYR(textra((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRt�scCs|jdd�S(s|Convert a project or version name to its filename-escaped form Any '-' characters are currently replaced with '_'. RWR�(R�(R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRu�sR#R�RDRR�R�tpython_implementationtpython_versiontpython_full_versionRZcCstjS(N(R�R#(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�stos_namecCstjS(N(RRD(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�st sys_platformcCstjj�dS(Ni(RR�R(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�scCsdtjdtjdfS(Ns%s.%sii(Rt version_info(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�scCs td�S(NR�(t _platinfo(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�stplatform_versioncCs td�S(NR�(Ra(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�stplatform_machinecCstd�pt�S(NR[(Rat_pyimp(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�scCs;yddl}Wntk r$dSXt||d���S(Ni����R�cSsdS(NR�((((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�s(RDR�R�(tattrRD((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRa�s  cCsDtjdkrdStjjd�r)dSdtjkr<�dSdSdS(Ntclit IronPythontjavatJythont__pypy__tPyPytCPython(RRDR�tbuiltin_module_names(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRd�scCs1yt|�Wntk r,tj�dSXtS(sHValidate text as a PEP 426 environment marker; return exception or Falsei(Rwt SyntaxErrorRRR�(ttext((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRv�s  csN�s ddlm�m�ddl�ddl�ddl���fd�}��fd�}��fd�}���fd�}�ji|�j6|�j6|�j6|�j 6d�d 6d �d 6�j d 6�j d 6�t �d�r |��j (RoR�R�R9tnew_keytresultte((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_markerlib_evaluateVs   R�cBs�eZdZdZdZdZd�Zd�Zd�Z d�Z d�Z d�Z e jdkrod�Zn d �Zd �Zd �Zd �Zd �Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(sETry to implement resources and metadata for arbitrary PEP 302 loaderscCs:t|dd�|_tjjt|dd��|_dS(NR�t__file__R�(R�RR�R�R�R%t module_path(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�vscCs|j|j|�S(N(t_fnR�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�zscCst|j||��S(N(RR�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�}scCs|j|j|j|��S(N(t_getR�R�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|j|j|��S(N(t_hasR�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs%|jo$|j|j|j|��S(N(tegg_infoR�R�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��sicCs)|js dS|j|j|j|��S(NR�(R�R�R�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cCs2|js dS|j|j|j|��jd�S(NR�sutf-8(R�R�R�tdecode(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cCst|j|��S(N(RrR�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|j|j|��S(N(t_isdirR�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRY�scCs%|jo$|j|j|j|��S(N(R�R�R�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|j|j|��S(N(t_listdirR�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRW�scCs)|jr%|j|j|j|��SgS(N(R�R�R�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cCs�d|}|j|�s,td|��n|j|�jdd�}|jdd�}|j|j|�}||d os.sep on pypy it is the same (one reason why distribute did work in some cases on pypy and win32). * [1] - zipinfo.compress_type * [2] - zipinfo.compress_size * [3] - zipinfo.file_size * [4] - len(utf-8 encoding of filename) if zipinfo & 0x800 len(ascii encoding of filename) otherwise * [5] - (zipinfo.date_time[0] - 1980) << 9 | zipinfo.date_time[1] << 5 | zipinfo.date_time[2] * [6] - (zipinfo.date_time[3] - 1980) << 11 | zipinfo.date_time[4] << 5 | (zipinfo.date_time[5] // 2) * [7] - zipinfo.CRC R�N( RtzipfiletZipFiletnamelistR�R�tseptgetinfoR�(R�tzipinfotzfiletzitemtzpath((s1/usr/lib/python2.7/site-packages/pkg_resources.pytbuild_zipmanifests  cBs�eZdZdZd�Zd�Zd�Zd�Ze d��Z d�Z d�Z d�Z d �Zd �Zd �Zd �Zd �Zd�ZRS(s"Resource support for zips and eggscCs?tj||�t|jj�|_|jjtj|_dS(N( R�R�R�R�tarchiveR�R�R�tzip_pre(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�@scCs@|j|j�r#|t|j�Std||jf��dS(Ns%s is not a subpath of %s(R�R�RutAssertionError(R�tfspath((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _zipinfo_nameEscCsd|j|}|j|jtj�rG|t|j�djtj�Std||jf��dS(Nis%s is not a subpath of %s(R�R�R�R�R�RuRR�(R�tzip_pathR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_partsNs  !cCs�|jstd��n|j|�}|j�}dj|j|��|kr~x*|D]}|j||j|��qXWn|j||�S(Ns5resource_filename() only supported for .egg, not .zipR�(R�R�t_resource_to_zipt_get_eager_resourcesRER�t_extract_resourcet _eager_to_zip(R�R�R�R�teagersR#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�Ws     cCs/|j}|jd}tj|�}||fS(Nii����(iii����(t file_sizet date_timettimetmktime(tzip_stattsizeR�t timestamp((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_get_date_and_sizeds  c Cs�||j�kr^x9|j�|D]'}|j|tjj||��}q#Wtjj|�S|j|j|�\}}ts�t d��ny(|j |j |j |��}|j ||�r�|Stddtjj|��\}} tj||jj|��tj|�t| ||f�|j| |�yt| |�Wnltjk r�tjj|�r�|j ||�r�|Stjdkr�t|�t| |�|Sn�nXWntjk r�|j�nX|S(Ns>"os.rename" and "os.unlink" are not supported on this platforms .$extracttdirR:(t_indexR�R�R�RER%R�R�R R!R9R�R�t _is_currentt_mkstemptwriteR�R�R�RRHRterrortisfileR#RR3( R�R�R�R#tlastR�R�t real_pathtoutfttmpnam((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�ls@$    c Cs�|j|j|�\}}tjj|�s2tStj|�}|j|ks_|j|krctS|j j |�}t |d�}|j �}|j �||kS(sK Return True if the file_path is current for this zip_path R�(R�R�R�R�R�R�R=tst_sizetst_mtimeR�R�RRR�( R�t file_pathR�R�R�R=t zip_contentstft file_contents((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s  cCsa|jdkrZg}x6dD].}|j|�r|j|j|��qqW||_n|jS(Nsnative_libs.txtseager_resources.txt(snative_libs.txtseager_resources.txt(R�RR�R�R�(R�R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s  cCs�y |jSWn�tk r�i}x~|jD]s}|jtj�}xX|r�tjj|d �}||kr�||j|d�PqF|j�g||PEP 302 Importer that wraps Python's "normal" import algorithmcCs ||_dS(N(R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�IscCs�|jd�d}||kr2|jdkr2dS|jdkrJd}n |jg}ytj||�\}}}Wntk r�dSXt|||�S(NR@i����(RR�Rtimpt find_moduleR�t ImpLoader(R�tfullnameR�tsubnametfileR&tetc((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�Ls   N(R�R�R�RR�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�Fs R�cBs eZdZd�Zd�ZRS(s<�PEP 302 Loader that wraps Python's "normal" import algorithmcCs||_||_||_dS(N(R�R&R�(R�R�R&R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�^s  cCsFz%tj||j|j|j�}Wd|jrA|jj�nX|S(N(R�t load_moduleR�R&R�R�(R�R�tmod((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�cs % (R�R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�[s cCs�ytj|}WnPtk rcx@tjD]+}y||�}Wntk rTq+XPq+Wd}nXtjj||�|dkr�yt|�}Wq�tk r�q�Xn|S(s�Retrieve a PEP 302 "importer" for the given path item If there is no importer, this returns a wrapper around the builtin import machinery. The returned importer is only cached if it was created by a path hook. N(Rtpath_importer_cacheR�t path_hooksR�RR�R�(t path_itemR�thook((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�os"     (R�t ImpImporterRt_distribution_finderscCs|t|=?|==|!=)\s*((\w|[-.])+)s\s*,s\s*\[s\s*\]s \w+(\.\w+)*$sL(?P[^-]+)( -(?P[^-]+) (-py(?P[^-]+) (-(?P.+))? )? )?s(\d+ | [a-z]+ | \.| -)tctpretpreviewsfinal-RWtrct@tdevccsuxitj|�D]X}t||�}| s|dkr>qn|d dkr_|jd�Vqd|VqWdVdS(NR@it 0123456789it*s*final(t component_reRR�tzfill(R�tpart((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_parse_version_parts�s cCs�g}x�t|j��D]�}|jd�r�|dkrdx'|r`|ddkr`|j�q=Wnx'|r�|ddkr�|j�qgWn|j|�qWt|�S(s�Convert a version string to a chronologically-sortable key This is a rough cross between distutils' StrictVersion and LooseVersion; if you give it versions that would work with StrictVersion, then it behaves the same; otherwise it acts like a slightly-smarter LooseVersion. It is *possible* to create pathological version coding schemes that will fool this parser, but they should be very rare in practice. The returned value will be a tuple of strings. Numeric portions of the version are padded to 8 digits so they will compare numerically, but without relying on how numbers compare relative to strings. Dots are dropped, but dashes are retained. Trailing zeros between alpha segments or dashes are suppressed, so that e.g. "2.4.0" is considered the same as "2.4". Alphanumeric parts are lower-cased. The algorithm assumes that strings like "-" and any alpha string that alphabetically follows "final" represents a "patch level". So, "2.4-1" is assumed to be a branch or patch of "2.4", and therefore "2.4.1" is considered newer than "2.4-1", which in turn is newer than "2.4". Strings like "a", "b", "c", "alpha", "beta", "candidate" and so on (that come before "final" alphabetically) are assumed to be pre-release versions, so that the version "2.4" is considered newer than "2.4a1". Finally, to handle miscellaneous cases, the strings "pre", "preview", and "rc" are treated as if they were "c", i.e. as though they were release candidates, and therefore are not as new as a version string that does not contain them, and "dev" is replaced with an '@' so that it sorts lower than than any other pre-release tag. R8s*finali����s*final-t00000000(R<RR�R�R�ttuple(R�R�R;((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRm�s cBs�eZdZd d d d�Zd�Zd�Zed d d�Zd d d�Z d d�Z e e �Z d d�Z e e �Z d d�Z e e �Z RS( s3Object representing an advertised importable objectcCsnt|�std|��n||_||_t|�|_tjddj|��j |_ ||_ dS(NsInvalid module namesx[%s]t,( tMODULERHR#t module_nameR>tattrsReR�RER�R�(R�R#RARBR�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s   "cCsfd|j|jf}|jr<�|ddj|j�7}n|jrb|ddj|j�7}n|S(Ns%s = %st:R@s [%s]R?(R#RARBRER�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__str__�s   cCsdt|�S(NsEntryPoint.parse(%r)(R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs�|r|j||�nt|jt�t�dg�}xN|jD]C}yt||�}WqDtk r�td||f��qDXqDW|S(NR�s%r has no %r attribute(RLR�RARRBR�R�R�(R�RLR�R�R�Re((s1/usr/lib/python2.7/site-packages/pkg_resources.pytload�s! cCs]|jr%|j r%td|��ntttjtj|jj|j�||���dS(Ns&Can't require() without a distribution( R�R�RjR�RR[R�RR�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRL�s cCsy�d }}|jdd�\}}d|krz|jdd�\}}tjd|�}|jrnt�n|j}nd|kr�|jdd�\}}t|j��s�t�n|j�jd�}nWn tk r�td|��n#X||j�|j�|||�SdS( sParse a single entry point from string `src` Entry point syntax follows the form:: name = some.module:some.attr [extra1,extra2] The entry name and module name are required, but the ``:attrs`` and ``[extras]`` parts are optional t=it[sx[RCR@s9EntryPoint must be in 'name=module:attrs [extras]' formatN(( RReR�tspecsRHR�R@RR(tclstsrcR�RBR�R#tvalueR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s&         cCs�t|�std|��ni}xZt|�D]L}|j||�}|j|krptd||j��n|||jEnsure distribution is importable on `path` (default=sys.path)snamespace_packages.txtN( RRR�R�R�R�R�RRZRk(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytactivate� s    cCsOdt|j�t|j�|jp'tf}|jrK|d|j7}n|S(s@Return what this distribution's standard .egg filename should bes %s-%s-py%sRW(RuRR�RR+RD(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s  cCs(|jrd||jfSt|�SdS(Ns%s (%s)(R�R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s cCsMyt|dd�}Wntk r/d}nX|p9d}d|j|fS(NR�s[unknown version]s%s %s(R�RRHR(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRD� s   cCs.|jd�rt|��nt|j|�S(sADelegate all unrecognized public attributes to .metadata providerR�(R�R�R�RW(R�Re((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt __getattr__� scKs(|jt|�tjj|�||�S(N(RRR�R�R�(RIR&R�R*((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� scCstjd|j|jf�S(s?Return a ``Requirement`` that matches this distribution exactlys%s==%s(ReR�RR�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� scCsD|j||�}|dkr:td||ff��n|j�S(s=Return the `name` entry point of `group` or raise ImportErrorsEntry point %r not foundN(RRRR�RE(R�RGR#R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRP s cCscy |j}Wn3tk rBtj|jd�|�}|_nX|dk r_|j|i�S|S(s=Return the entry point map for `group`, or the full entry mapsentry_points.txtN(t_ep_mapR�RfRQRkRR�(R�RGtep_map((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRQ s    cCs|j|�j|�S(s<�Return the EntryPoint object for `group`+`name`, or ``None``(RQR�(R�RGR#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRR sc Csj|p |j}|sdSt|�}tjj|�}g|D]}|rVt|�pY|^q>}d}x�t|�D]w\}}||kr�Pqu||kru|jtkru|t jkr�|j �n|j ||�|j ||�PququW|t jkr |j �n|j |�dSxFy|j ||d�} Wntk rNPq X|| =|| =| }q dS(s@Insert self.location in path before its nearest parent directoryNi(R�RR�R�R%Rt enumerateRRzRtcheck_version_conflictR�R�tindexRH( R�R�tloctnloctbdirtptnpathtbpR�tnp((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� s8 +      c Cs�|jdkrdStj|jd��}t|j�}x�|jd�D]�}|tjksJ||ksJ|tkr}qJn|dkr�qJnt tj|dd�}|r�t|�j |�sJ|j |j�r�qJnt d|||jf�qJWdS( Nt setuptoolssnamespace_packages.txts top_level.txtt pkg_resourcestsiteR�sIModule %s was already imported from %s, but %s is being added to sys.path(R�R�ssite( R9RR RkRyR�RR�RR�RR�t issue_warning(R�tnspRztmodnameR((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRxG s"  cCs8y |jWn&tk r3tdt|��tSXtS(NsUnbuilt egg for (R�RHR�R�R�R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR#] s   cKsMx*dD]"}|j|t||d ��qW|jd|j�|j|�S( s@Copy this distribution, substituting in any changed keyword argsRR�RRDR�RR�(s project_namesversions py_versionsplatformslocations precedenceN(R�R�RRWR�(R�R*Re((s1/usr/lib/python2.7/site-packages/pkg_resources.pytclonee s   cCs g|jD]}|r |^q S(N(Rq(R�tdep((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�s sN(((R�R�R�RlRR+RzR�RRRtpropertyR`RaRbRcRdReRfRgR9R^R�RqR�RkRsR�R�RDRtRRRPRQRRR�RxR#R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRd; sT                          )    tDistInfoDistributioncBsSeZdZdZejd�Zed��Zed��Z d�Z d�Z RS(sGWrap an actual or potential sys.path entry w/metadata, .dist-info styletMETADATAs([\(,])\s*(\d.*?)\s*([,\)])cCsXy |jSWnFtk rSddlm}|�j|j|j��|_|jSXdS(sParse and cache metadatai����(tParserN(t _pkg_infoR�t email.parserR�tparsestrR�Rl(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_parsed_pkg_info} s   !cCs6y |jSWn$tk r1|j�|_|jSXdS(N(t_DistInfoDistribution__dep_mapR�t_compute_dependencies(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRq� s   cCsy|jdd�dg}|dj�}|dj�}tj|jd|�}|jdd�jdd�}||fS(s�Convert 'Foobar (1); baz' to ('Foobar ==1', 'baz') Split environment marker, add == prefix to version specifiers as necessary, and remove parenthesis. t;iR�is\1==\2\3t(t)(RRRXRYtEQEQR�(R�t requires_distR�tdistverstmark((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_preparse_requirement� s c sddlm}igd6}|_g�xc|jjd�pBgD]I}|j|�\}}tt|��}||�|_ �j |�qCW�fd�}t |d��}|dj |�xR|jjd�p�gD]8} t | j��} tt || ��|�|| R*tlevelR+RB((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s  c #s#tt|����fd�}x��D]�}t|�}|sRtd|��n|jd�}|j�}g}t||�}|r�|j�}|tt||dd�\}}}n|tt ||d d�\}}}g|D]\}} |t | �f^q�}t |||�Vq(WdS( s�Yield ``Requirement`` objects for each specification in `strs` `strs` must be an instance of ``basestring``, or a (possibly-nested) iterable thereof. cs?g}x|||�s t||�r`yt��}d}Wq`tk r\td��q`Xn|||�}|s�td|d|d||��n|j|j|��|j�}t||�}|r�|j�}q |||�s td|d||��q q W|||�}|r2|j�}n|||fS(Nis+\ must not appear on the last nonblank lines Expected s intatsExpected ',' or end-of-list in(tCONTINUERt StopIterationRHR�RGtendtCOMMA(tITEMt TERMINATORRR}tgroupst item_nameR'RC(RL(s1/usr/lib/python2.7/site-packages/pkg_resources.pyt scan_list� s0  $ sMissing distribution specis 'extra' nameis version specN(i(ii( titerRrtDISTRORHRGR�tOBRACKETtCBRACKETtVERSIONtLINE_ENDRoRe( R/R�RRCRR}R�RHR�R,((RLs1/usr/lib/python2.7/site-packages/pkg_resources.pyRl� s"    $$+cCs\g|D]}|j|f^q}|j�g|D]\}}|^q3|ddd�DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!N(Rnt unsafe_nameRRR9Rmt state_machineRRHR>RRtRyR�R�thashCmpR_t_Requirement__hash( R�RRHR�R�R1RyRSttransRX((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�2 s5 ."4cCsgdjg|jD]}dj|�^q�}dj|j�}|rSd|}nd|j||fS(NR?R�s[%s]s%s%s%s(RERHR�R(R�R�RHR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRD@ s . cCst|t�o|j|jkS(N(R�ReR�(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRfF sc Cs t|t�r=|j|jkr%tS|jr[|j}q[nt|t�r[t|�}nd}d�}x�|jD]{\}}}}||||�}|dkr�tS|dkr�t S|dkr�t }qt|dks�|dkrtt}qtqtW|dkrt }n|S(NcSs||k||kS(N((tatb((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRP stFtTt+RW( R�RdR9R�RyR^R�RmRR�( R�R�R�tcompareRSR�R�RXtaction((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�I s,       cCs|jS(N(R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRa[ scCsdt|�S(NsRequirement.parse(%r)(R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�^ scCsWtt|��}|rDt|�dkr2|dStd|��ntd|��dS(NiisExpected only one requirementsNo requirements found(R�RlRuRH(R�Ro((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�a s ( R�R�R�RDRfR�RaR�R�RJ(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRe1 s       s--TtsT+Fs>=sT..s==sF++s!=cCs:t|t�s3d|tfd��Y}|jdS|jS(s&Get an mro for a type or classic classRIcBseZRS((R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRIy si(R�ttypetobjectt__mro__(RI((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_get_mrov s cCsAx:tt|dt|���D]}||kr||SqWdS(s2Return an adapter factory for `ob` from `registry`R�N(R�R�R�(tregistryR:R((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�} s% cCs8tjj|�}tjj|�s4tj|�ndS(s1Ensure that the parent directory of `path` existsN(R�R�R%Rtmakedirs(R�R%((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRx� sccs�d}g}x�t|�D]y}|jd�r�|jd�rs|sI|rW||fVn|dd!j�}g}q�td|��q|j|�qW||fVdS(srSplit a string or iterable thereof into (section,content) pairs Each ``section`` is a stripped version of the section header ("[section]") and each ``content`` is a list of stripped lines excluding blank lines and comment-only lines. If there are any such lines before the first section header, they're returned in a first ``section`` of ``None``. RGt]ii����sInvalid section headingN(RRrR�R�RRHR�(R�tsectiontcontentR((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRs� s  cOsDddlm}tj}ztt_|||�SWd|t_XdS(Ni����(tmkstemp(ttempfileR�R�Rtos_open(R>R*R�told_open((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s   cCs@x9tt�D]+}|jd�s tt|�||s�`            '           +                      3      )�,�� )           X  d    !�,       (            , )w �>?   # = :