ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/distlib/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/distlib/__pycache__/locators.cpython-311.pyc

�

�܋f7���6�ddlZddlmZddlZddlZddlZddlZddlZ	ddlZn#e	$rddl
ZYnwxYwddlZddlm
Z
ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZddlmZm Z m!Z!ddl"m#Z#m$Z$ddl%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-dd	l.m/Z/m0Z0dd
l1m2Z2m3Z3ej4e5��Z6ej7d��Z8ej7dej9��Z:ej7d
��Z;dZ<d+d�Z=Gd�de��Z>Gd�de?��Z@Gd�de@��ZAGd�de@��ZBGd�de?��ZCGd�de@��ZDGd�de@��ZEGd�de@��ZFGd �d!e@��ZGGd"�d#e@��ZHeHeDd$d%�&��d'�(��ZIeIjJZJGd)�d*e?��ZKdS),�N)�BytesIO�)�DistlibException)�urljoin�urlparse�
urlunparse�url2pathname�pathname2url�queue�quote�unescape�build_opener�HTTPRedirectHandler�	text_type�Request�	HTTPError�URLError)�Distribution�DistributionPath�	make_dist)�Metadata�MetadataInvalidError)�cached_property�ensure_slash�split_filename�get_project_data�parse_requirement�parse_name_and_version�ServerProxy�normalize_name)�
get_scheme�UnsupportedVersionError)�Wheel�
is_compatiblez^(\w+)=([a-f0-9]+)z;\s*charset\s*=\s*(.*)\s*$ztext/html|application/x(ht)?mlzhttps://pypi.org/pypic��|�t}t|d���}	|���|d����S#|d����wxYw)z�
    Return all distribution names known by an index.
    :param url: The URL of the index.
    :return: A list of all known distribution names.
    N�@��timeout�close)�
DEFAULT_INDEXr�
list_packages)�url�clients  �a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/distlib/locators.py�get_all_distribution_namesr/*si���{���
��c�
*�
*�
*�F���#�#�%�%����w�����������w���������s�A�Ac�$�eZdZdZd�ZexZxZZdS)�RedirectHandlerzE
    A class to work around a bug in some Python 3.2.x releases.
    c�6�d}dD]}||vr
||}n�|�dSt|��}|jdkrNt|���|��}t	|d��r|�||��n|||<t
j||||||��S)N)�location�uri��replace_header)r�schemer�get_full_url�hasattrr6�BaseRedirectHandler�http_error_302)	�self�req�fp�code�msg�headers�newurl�key�urlpartss	         r.r;zRedirectHandler.http_error_302Bs�����&�	�	�C��g�~�~� ��������>��F��F�#�#���?�b� � ��S�-�-�/�/��8�8�F��w� 0�1�1�
&��&�&�s�F�3�3�3�3�%����"�1�$��R��s�29�;�;�	;�N)�__name__�
__module__�__qualname__�__doc__r;�http_error_301�http_error_303�http_error_307�rEr.r1r19s9��������;�;�;�(8F�E�N�E�^�n�n�nrEr1c��eZdZdZdZdZdZdZedzZdd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zee
e��Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zdd�ZdS)�LocatorzG
    A base class for locators - things that locate distributions.
    )z.tar.gzz.tar.bz2z.tarz.zipz.tgzz.tbz)z.eggz.exe�.whl)z.pdfN)rP�defaultc��i|_||_tt����|_d|_t
j��|_dS)a^
        Initialise an instance.
        :param scheme: Because locators look for most recent versions, they
                       need to know the version scheme to use. This specifies
                       the current PEP-recommended scheme - use ``'legacy'``
                       if you need to support existing distributions on PyPI.
        N)	�_cacher7rr1�opener�matcherr�Queue�errors)r<r7s  r.�__init__zLocator.__init__isC��������#�?�#4�#4�5�5�������k�m�m����rEc�,�g}|j���sx	|j�d��}|�|��n#|jj$rY�[wxYw|j���|j����x|S)z8
        Return any errors which have occurred.
        F)rW�empty�get�append�Empty�	task_done)r<�result�es   r.�
get_errorszLocator.get_errors|s������+�#�#�%�%�	$�
��K�O�O�E�*�*���
�
�a� � � � ���;�$�
�
�
���
�����K�!�!�#�#�#�
�+�#�#�%�%�	$��
s�/A
�
A�Ac�.�|���dS)z>
        Clear any errors which may have been logged.
        N)ra�r<s r.�clear_errorszLocator.clear_errors�s��
	
�������rEc�8�|j���dS�N)rS�clearrcs r.�clear_cachezLocator.clear_cache�s����������rEc��|jSrf��_schemercs r.�_get_schemezLocator._get_scheme�s
���|�rEc��||_dSrfrj)r<�values  r.�_set_schemezLocator._set_scheme�s
������rEc� �td���)a=
        For a given project, get a dictionary mapping available versions to Distribution
        instances.

        This should be implemented in subclasses.

        If called from a locate() request, self.matcher will be set to a
        matcher for the requirement to satisfy, otherwise it will be None.
        � Please implement in the subclass��NotImplementedError)r<�names  r.�_get_projectzLocator._get_project�s��"�"D�E�E�ErEc� �td���)�J
        Return all the distribution names known to this locator.
        rqrrrcs r.�get_distribution_nameszLocator.get_distribution_names�s��"�"D�E�E�ErEc���|j�|�|��}nJ||jvr|j|}n3|���|�|��}||j|<|S)z�
        For a given project, get a dictionary mapping available versions to Distribution
        instances.

        This calls _get_project to do all the work, and just implements a caching layer on top.
        )rSrurd)r<rtr_s   r.�get_projectzLocator.get_project�sr���;���&�&�t�,�,�F�F�
�T�[�
 �
 ��[��&�F�F��������&�&�t�,�,�F� &�D�K����
rEc�,�t|��}tj|j��}d}|�d��}|�|j��}|r"t
t|��|j��}|j	dkd|j
v||||fS)zu
        Give an url a score which can be used to choose preferred URLs
        for a given project release.
        TrP�httpszpypi.org)r�	posixpath�basename�path�endswith�downloadable_extensionsr$r#�
wheel_tagsr7�netloc)r<r,�tr~�
compatible�is_wheel�is_downloadables       r.�	score_urlzLocator.score_url�s���

�S�M�M���%�a�f�-�-���
��$�$�V�,�,��"�+�+�D�,H�I�I���	I�&�u�X�����H�H�J���G�#�Z�1�8�%;���:�x�A�	ArEc���|}|rq|�|��}|�|��}||kr|}||krt�d||��nt�d||��|S)a{
        Choose one of two URLs where both are candidates for distribution
        archives for the same version of a distribution (for example,
        .tar.gz vs. zip).

        The current implementation favours https:// URLs over http://, archives
        from PyPI over those from other locations, wheel compatibility (if a
        wheel) and then the archive name.
        zNot replacing %r with %rzReplacing %r with %r)r��logger�debug)r<�url1�url2r_�s1�s2s      r.�
prefer_urlzLocator.prefer_url�s������	A�����%�%�B�����%�%�B��B�w�w�����~�~����7��t�D�D�D�D����3�T�4�@�@�@��
rEc�"�t||��S)zZ
        Attempt to split a filename in project name, version and Python version.
        )r)r<�filename�project_names   r.rzLocator.split_filename�s���h��5�5�5rEc�*�d�}d}t|��\}}}}}	}
|
����d��rt�d||
��t
�|
��}|r|���\}}
nd\}}
|}|r|ddkr
|dd�}|�d��r�	t|��}t||j��st�d	|��nd|�d
}n||j|��}|rL|j|j
|jt|||||	df��d�d
�|jD����d�}�n#t$$rt�d|��Yn�wxYw|�|j��st�d|��n�t+j|��x}}|jD]�}|�|��r�|dt/|���}|�||��}|st�d|��n5|\}}}|r|||��r!|||t|||||	df��d�}|r||d<n��|r
|r|
|d|z<|S)a
        See if a URL is a candidate for a download URL for a project (the URL
        has typically been scraped from an HTML page).

        If it is, a dictionary is returned with keys "name", "version",
        "filename" and "url"; otherwise, None is returned.
        c�B�t|��t|��kSrf)r )�name1�name2s  r.�same_projectz:Locator.convert_url_to_download_info.<locals>.same_project�s��!�%�(�(�N�5�,A�,A�A�ArENzegg=z %s: version hint in fragment: %r)NN����/rPzWheel not compatible: %sTr5z, c	�b�g|],}d�t|dd�������-S)�.�N)�join�list)�.0�vs  r.�
<listcomp>z8Locator.convert_url_to_download_info.<locals>.<listcomp>s2�� L� L� L�1����$�q����u�+�+�!6�!6� L� L� LrE)rt�versionr�r,�python-versionzinvalid path for wheel: %szNot downloadable: %sz No match for project/version: %s)rtr�r�r,r��	%s_digest)r�lower�
startswithr�r��HASHER_HASH�match�groupsr�r#r$r�rtr�r�rr��pyver�	Exception�warningr�r}r~�lenr)r<r,r�r�r_r7r�r�params�query�frag�m�algo�digest�origpath�wheel�includer��extr�rtr�r�s                       r.�convert_url_to_download_infoz$Locator.convert_url_to_download_info�s@��	B�	B�	B���4<�S�M�M�1����f�e�T��:�:�<�<�"�"�6�*�*�	-��L�L�;�%�t�
-�
-�
-����d�#�#���	&��8�8�:�:�L�D�&�&�%�L�D�&����	�D��H��O�O�����9�D��=�=�� � �,	�
C��d����$�U�D�O�<�<���L�L�!;�T�B�B�B�B�#�+�"&���".�,�u�z�<�"H�"H���	�$)�J�',�}�(-��#-�v�v�x�/5�u�b�/B�$C�$C�.2�i�i� L� L��� L� L� L�/N�/N�
"�"�����
C�
C�
C����;�T�B�B�B�B�B�
C�������t�;�<�<�	��L�L�/��6�6�6�6�'�0��6�6�6�D�8��3�
�
���=�=��%�%���
�#�c�(�(��
�+�D��+�+�D�,�?�?�A��
A����%G��N�N�N�N�/0�,��g�u�+�	A�|�|�L�$�/O�/O�	A�(,�+2�,4�'1�6�6�8�39�5�"�3F�(G�(G�	&�&�F� %�A�;@��'7� 8��E�#�$�	0�d�	0�)/�F�;��%�&��
s�B$E.�.%F�Fc��d}d|vr|d}dD]}||vr|||f}n�|sdD]}d|z}||vr|||f}n�|S)z�
        Get a digest from a dictionary by looking at a "digests" dictionary
        or keys of the form 'algo_digest'.

        Returns a 2-tuple (algo, digest) if found, else None. Currently
        looks only for SHA256, then MD5.
        N�digests)�sha256�md5r�rM)r<�infor_r�r�rCs      r.�_get_digestzLocator._get_digest3s����������9�o�G�)�
�
���7�?�?�"�G�D�M�2�F��E�#��	�)�
�
��!�D�(���$�;�;�"�D��I�.�F��E���
rEc��|�d��}|�d��}||vr||}|j}nt|||j���}|j}|�|��x|_}|d}||d|<|j|dkr[|�|j|��|_|d�|t�����
|��||_|||<dS)z�
        Update a result dictionary (the final result from _get_project) with a
        dictionary for a specific version, which typically holds information
        gleaned from a filename or URL for an archive for the distribution.
        rtr��r7r,r��urlsN)�pop�metadatarr7r�r��
source_urlr��
setdefault�set�add�locator)	r<r_r�rtr��dist�mdr�r,s	         r.�_update_version_datazLocator._update_version_dataJs����x�x������(�(�9�%�%���f����'�?�D���B�B��T�7�4�;�?�?�?�D���B�#�/�/��5�5�5���f��5�k��!'��y��#��
�=�D��K�'�'� �O�O�B�M�3�?�?�B�M��6�N�%�%�g�s�u�u�5�5�9�9�#�>�>�>������w���rEFc�4�d}t|��}|�td|z���t|j��}|�|j��x|_}t�d|t|��j	��|�
|j��}t|��dkr�g}|j
}	|D]q}
|
dvr�	|�|
��sn'|s|	|
��js|�|
���F#t"$rt�d||
��Y�nwxYwt|��dkrt'||j���}|r+t�d	|��|d
}||}|r�|jr|j|_|�di���|t/����|_i}|�di��}
|jD]}||
vr|
|||<�||_d|_|S)
a
        Find the most recent distribution which matches the given
        requirement.

        :param requirement: A requirement of the form 'foo (1.0)' or perhaps
                            'foo (>= 1.0, < 2.0, != 1.3)'
        :param prereleases: If ``True``, allow pre-release versions
                            to be located. Otherwise, pre-release versions
                            are not returned.
        :return: A :class:`Distribution` instance, or ``None`` if no such
                 distribution could be located.
        NzNot a valid requirement: %rzmatcher: %s (%s)r��r�r�zerror matching %s with %rr)rCzsorted list: %sr�r�r�)rrr!r7rU�requirementr�r��typerFrzrtr��
version_classr��
is_prereleaser\r�r��sortedrC�extrasr[r��
download_urlsr�)r<r��prereleasesr_�rr7rU�versions�slist�vcls�kr��d�sdr,s               r.�locatezLocator.locateas4�����k�*�*���9�"�#@�;�#N�O�O�O��D�K�(�(��!'����
�!>�!>�>���w����'��$�w�-�-�2H�I�I�I��#�#�A�F�+�+���x�=�=�1����E��(�D��
�
���+�+�+���"�=�=��+�+�,��&�,�d�d�1�g�g�.C�,�!�L�L��O�O�O��� �����N�N�#>���K�K�K��D������5�z�z�A�~�~��u�&�*�5�5�5���
+����.��6�6�6���)��!�'�*���		��x�
)� !���
�#+�<�<���#;�#;�#?�#?�����#O�#O�F� ��A����i��,�,�B��+�
%�
%���"�9�9���W�A�c�F���F�N�����
s�	=D�&D0�/D0)rQ)F)rFrGrHrI�source_extensions�binary_extensions�excluded_extensionsr�r�rXrardrhrlro�propertyr7rurxrzr�r�rr�r�r�r�rMrEr.rOrOYs_��������P��0��#���J�/�)�;��$�$�$�$�&����������������X�k�;�
/�
/�F�
F�
F�
F�F�F�F����"
A�
A�
A����,6�6�6�G�G�G�R���.���.6�6�6�6�6�6rErOc�.��eZdZdZ�fd�Zd�Zd�Z�xZS)�PyPIRPCLocatorz�
    This locator uses XML-RPC to locate distributions. It therefore
    cannot be used with simple mirrors (that only mirror file content).
    c���tt|��jdi|��||_t	|d���|_dS)z�
        Initialise an instance.

        :param url: The URL to use for XML-RPC.
        :param kwargs: Passed to the superclass constructor.
        r&r'NrM)�superr�rX�base_urlrr-�r<r,�kwargs�	__class__s   �r.rXzPyPIRPCLocator.__init__�sG���	-��n�d�#�#�,�6�6�v�6�6�6���
�!�#�s�3�3�3����rEc�N�t|j�����S�rw)r�r-r+rcs r.rxz%PyPIRPCLocator.get_distribution_names�s ���4�;�,�,�.�.�/�/�/rEc�$�iid�}|j�|d��}|D�]k}|j�||��}|j�||��}t	|j���}|d|_|d|_|�d��|_	|�dg��|_
|�d��|_t|��}|r�|d	}	|	d
|_
|�|	��|_||_|||<|D]e}	|	d
}
|�|	��}|d�|t%�����|
��||d|
<�f��m|S)
Nr�Tr�rtr��license�keywords�summaryrr,r�r�)r-�package_releases�release_urls�release_datarr7rtr�r[r�r�r�rr�r�r�r�r�r�r�)r<rtr_r�r�r��datar�r�r�r,r�s            r.ruzPyPIRPCLocator._get_project�s�����,�,���;�/�/��d�;�;���	4�	4�A��;�+�+�D�!�4�4�D��;�+�+�D�!�4�4�D��t�{�3�3�3�H� ��L�H�M�#�I��H��#�x�x�	�2�2�H�� $����R� 8� 8�H��#�x�x�	�2�2�H����)�)�D��

4��A�w��&*�5�k��#�"�.�.�t�4�4���#��� ��q�	� �4�4�D��u�+�C�!�-�-�d�3�3�F��6�N�-�-�a����7�7�;�;�C�@�@�@�-3�F�9�%�c�*�*���
rE�rFrGrHrIrXrxru�
__classcell__�r�s@r.r�r��s`���������	4�	4�	4�	4�	4�0�0�0�������rEr�c�.��eZdZdZ�fd�Zd�Zd�Z�xZS)�PyPIJSONLocatorzw
    This locator uses PyPI's JSON interface. It's very limited in functionality
    and probably not worth using.
    c�p��tt|��jdi|��t|��|_dS)NrM)r�r�rXrr�r�s   �r.rXzPyPIJSONLocator.__init__�s9���-��o�t�$�$�-�7�7��7�7�7�$�S�)�)��
�
�
rEc� �td����rwzNot available from this locatorrrrcs r.rxz&PyPIJSONLocator.get_distribution_names����"�"C�D�D�DrEc�l�iid�}t|jdt|��z��}	|j�|��}|������}tj|��}t|j
���}|d}|d|_|d|_|�
d��|_|�
dg��|_|�
d	��|_t#|��}||_|||j<|d
D]�}	|	d}|j�|��|�|	��|j|<|d
�|jt1�����|��|�|	��|d|<��|d
���D]�\}
}|
|jkr�t|j
���}|j|_|
|_t#|��}
||
_|
||
<|D]�}	|	d}|
j�|��|�|	��|
j|<|d
�|
t1�����|��|�|	��|d|<����nY#t4$rL}|j�t;|����t<�d|��Yd}~nd}~wwxYw|S)Nr�z%s/jsonr�r�rtr�r�r�r�r�r,r��releaseszJSON fetch failed: %s) rr�rrT�open�read�decode�json�loadsrr7rtr�r[r�r�r�rr�r�r�r�r�r�r��itemsr�rW�putrr��	exception)r<rtr_r,�respr�r�r�r�r�r��infos�omd�odistr`s               r.ruzPyPIJSONLocator._get_project�s����,�,���d�m�Y��t���%<�=�=��/	9��;�#�#�C�(�(�D��9�9�;�;�%�%�'�'�D��
�4� � �A����-�-�-�B��V�9�D��6�l�B�G��i��B�J����)�,�,�B�J��(�(�:�r�2�2�B�K����)�,�,�B�J���#�#�D��D�L�!%�F�2�:���&�	�
@�
@���5�k���"�&�&�s�+�+�+�$(�$4�$4�T�$:�$:���S�!��v��)�)�"�*�c�e�e�<�<�@�@��E�E�E�)-�)9�)9�$�)?�)?��y�!�#�&�&�"#�J�-�"5�"5�"7�"7�
D�
D�����b�j�(�(���d�k�2�2�2���7���%���$�S�)�)�� $��
�"'��w��!�D�D�D��u�+�C��'�+�+�C�0�0�0�)-�)9�)9�$�)?�)?�E�M�#�&��6�N�-�-�g�s�u�u�=�=�A�A�#�F�F�F�-1�-=�-=�d�-C�-C�F�9�%�c�*�*�D�
D��.�	9�	9�	9��K�O�O�I�a�L�L�)�)�)����4�a�8�8�8�8�8�8�8�8�����	9�����
s�J.K�
L1�%AL,�,L1r�r�s@r.r�r��sc���������*�*�*�*�*�E�E�E�3�3�3�3�3�3�3rEr�c���eZdZdZejdejejzejz��Z	ejdejejz��Z
d�Zejdej��Ze
d���ZdS)�Pagez4
    This class represents a scraped HTML page.
    z�
(rel\s*=\s*(?:"(?P<rel1>[^"]*)"|'(?P<rel2>[^']*)'|(?P<rel3>[^>\s
]*))\s+)?
href\s*=\s*(?:"(?P<url1>[^"]*)"|'(?P<url2>[^']*)'|(?P<url3>[^>\s
]*))
(\s+rel\s*=\s*(?:"(?P<rel4>[^"]*)"|'(?P<rel5>[^']*)'|(?P<rel6>[^>\s
]*)))?
z!<base\s+href\s*=\s*['"]?([^'">]+)c��||_|x|_|_|j�|j��}|r|�d��|_dSdS)zk
        Initialise an instance with the Unicode page contents and the URL they
        came from.
        rN)r�r�r,�_base�search�group)r<r�r,r�s    r.rXz
Page.__init__ sW��
��	�#&�&��
����J���d�i�(�(���	'��G�G�A�J�J�D�M�M�M�	'�	'rEz[^a-z0-9$&+,/:;=?@.#%_\\|-]c��d�}t��}|j�|j��D]�}|�d��}|dp'|dp|dp|dp|dp|d}|d	p|d
p|d}t|j|��}t|��}|j�	d�|��}|�
||f����t|d
�d���}|S)z�
        Return the URLs of all the links on a page together with information
        about their "rel" attribute, for determining which ones to treat as
        downloads and which ones to queue for further scraping.
        c�r�t|��\}}}}}}t||t|��|||f��S)zTidy up an URL.)rrr)r,r7r�rr�r�r�s       r.�cleanzPage.links.<locals>.clean4sD��8@��
�
�5�F�F�D�&�%���v�v�u�T�{�{�%�u�d�4�5�5�
5rEr5�rel1�rel2�rel3�rel4�rel5�rel6r�r��url3c�L�dt|�d����zS)Nz%%%2xr)�ordr)r�s r.�<lambda>zPage.links.<locals>.<lambda>Bs��w��Q�W�W�Q�Z�Z���/H�rEc��|dS)NrrM)r�s r.rzPage.links.<locals>.<lambda>Fs
��a��d�rET)rC�reverse)r��_href�finditerr��	groupdictrr�r
�	_clean_re�subr�r�)r<rr_r�r��relr,s       r.�linksz
Page.links-s��	5�	5�	5������Z�(�(���3�3�	#�	#�E�����#�#�A��V�9�7��&�	�7�Q�v�Y�7��V�9�7� !�&�	�7�-.�v�Y�
��F�)�5�q��y�5�A�f�I�C��$�-��-�-�C��3�-�-�C��.�$�$�%H�%H�#�N�N�C��J�J��S�z�"�"�"�"���N�N�D�A�A�A���
rEN)rFrGrHrI�re�compile�I�S�Xr!rrXr$rr'rMrEr.r
r
s���������
�B�J���T�B�D�[�2�4��	
�
�E�

�B�J�?������M�M�E�	'�	'�	'���
�9�2�4�@�@�I�����_���rEr
c���eZdZdZejd�d�d�Zd�fd�	Zd�Zd	�Z	d
�Z
ejdej
��Zd�Zd
�Zd�Zd�Zd�Zejd��Zd�Z�xZS)�SimpleScrapingLocatorz�
    A locator which scrapes HTML pages to locate downloads for a distribution.
    This runs multiple threads to do the I/O; performance is at least as good
    as pip's PackageFinder, which works in an analogous fashion.
    c�j�tjt|��������S)N)�fileobj)�gzip�GzipFilerr��bs r.rzSimpleScrapingLocator.<lambda>Ts%��$�-���
�
�;�;�;�@�@�B�B�rEc��|SrfrMr3s r.rzSimpleScrapingLocator.<lambda>Us��!�rE)�deflater1�noneN�
c���tt|��jdi|��t|��|_||_i|_t��|_tj
��|_t��|_d|_
||_tj��|_tj��|_d|_dS)a�
        Initialise an instance.
        :param url: The root URL to use for scraping.
        :param timeout: The timeout, in seconds, to be applied to requests.
                        This defaults to ``None`` (no timeout specified).
        :param num_workers: The number of worker threads you want to do I/O,
                            This defaults to 10.
        :param kwargs: Passed to the superclass.
        FNrM)r�r.rXrr�r(�_page_cacher��_seenrrV�	_to_fetch�
_bad_hosts�skip_externals�num_workers�	threading�RLock�_lock�_gplock�platform_check)r<r,r(r?r�r�s     �r.rXzSimpleScrapingLocator.__init__Xs����	4��#�T�*�*�3�=�=�f�=�=�=�$�S�)�)��
��������U�U��
��������%�%���#���&����_�&�&��
�
!��(�(���#����rEc���g|_t|j��D]Q}tj|j���}d|_|���|j�|���RdS)z�
        Threads are created only when get_project is called, and terminate
        before it returns. They are there primarily to parallelise I/O (i.e.
        fetching web pages).
        )�targetTN)	�_threads�ranger?r@�Thread�_fetch�daemon�startr\)r<�ir�s   r.�_prepare_threadsz&SimpleScrapingLocator._prepare_threadsssq����
��t�'�(�(�	$�	$�A�� ���4�4�4�A��A�H�
�G�G�I�I�I��M� � ��#�#�#�#�		$�	$rEc��|jD]}|j�d���|jD]}|����g|_dS)zu
        Tell all the threads to terminate (by sending a sentinel value) and
        wait for them to do so.
        N)rGr<rr�)r<r�s  r.�
_wait_threadsz#SimpleScrapingLocator._wait_threads�sY����	%�	%�A��N���t�$�$�$�$���	�	�A�
�F�F�H�H�H�H���
�
�
rEc�>�iid�}|j5||_||_t|jdt|��z��}|j���|j���|�	��	t�d|��|j�
|��|j���|���n#|���wxYw|`ddd��n#1swxYwY|S)Nr�z%s/zQueueing %s)rCr_r�rr�rr;rgr:rNr�r�r<rr�rP)r<rtr_r,s    r.ruz"SimpleScrapingLocator._get_project�sN����,�,��
�\�
	�
	� �D�K� $�D���$�-���t���)<�=�=�C��J��������"�"�$�$�$��!�!�#�#�#�
%����]�C�0�0�0���"�"�3�'�'�'���#�#�%�%�%��"�"�$�$�$�$���"�"�$�$�$�$������
	�
	�
	�
	�
	�
	�
	�
	�
	�
	�
	����
	�
	�
	�
	��
s+�A:D�AC+�D�+D�D�D�Dz<\b(linux_(i\d86|x86_64|arm\w+)|win(32|_amd64)|macosx_?\d+)\bc�6�|j�|��S)zD
        Does an URL refer to a platform-specific download?
        )�platform_dependentr)r<r,s  r.�_is_platform_dependentz,SimpleScrapingLocator._is_platform_dependent�s���&�-�-�c�2�2�2rEc�*�|jr|�|��rd}n|�||j��}t�d||��|r:|j5|�|j|��ddd��n#1swxYwY|S)a%
        See if an URL is a suitable download for a project.

        If it is, register information in the result dictionary (for
        _get_project) about the specific version it's for.

        Note that the return value isn't actually used other than as a boolean
        value.
        Nzprocess_download: %s -> %s)	rDrTr�r�r�r�rBr�r_)r<r,r�s   r.�_process_downloadz'SimpleScrapingLocator._process_download�s�����	M�4�#>�#>�s�#C�#C�	M��D�D��4�4�S�$�:K�L�L�D����1�3��=�=�=��	=���
=�
=��)�)�$�+�t�<�<�<�
=�
=�
=�
=�
=�
=�
=�
=�
=�
=�
=����
=�
=�
=�
=��s� B�B�Bc��t|��\}}}}}}|�|j|jz|jz��rd}n�|jr|�|j��sd}n||�|j��sd}n_|dvrd}nX|dvrd}nQ|�|��rd}n9|�	dd��d}	|	�
��dkrd}nd}t�d	||||��|S)
z�
        Determine whether a link URL from a referring page and with a
        particular "rel" attribute should be queued for scraping.
        F)�homepage�download)�httpr|�ftp�:rr�	localhostTz#should_queue: %s (%s) from %s -> %s)
rr�r�r�r�r>r�r�rT�splitr�r�r�)
r<�link�referrerr&r7r�r�_r_�hosts
          r.�
_should_queuez#SimpleScrapingLocator._should_queue�s8��
)1����%����a��A��=�=��/�$�2H�H��1�2�3�3�	��F�F�
�
 �	������)G�)G�	��F�F��$�$�T�]�3�3�
	��F�F�
�0�
0�
0��F�F�
�3�
3�
3��F�F�
�
(�
(��
.�
.�	��F�F��<�<��Q�'�'��*�D��z�z�|�|�{�*�*���������:�D�#��v�	'�	'�	'��
rEc���	|j���}	|r�|�|��}|�	|j����O|jD]�\}}||jvr�	|j�|��|�|��sM|�|||��r6t�
d||��|j�|����#t$rY��wxYw��n>#t$r1}|j�t|����Yd}~nd}~wwxYw|j���n#|j���wxYw|sdS��o)z�
        Get a URL to fetch from the work queue, get the HTML page, examine its
        links for download candidates and candidates for further scraping.

        This is a handy method to run in a thread.
        TNzQueueing %s from %s)r<r[�get_pager^r'r;r�rVrcr�r�rrr�rWr)r<r,�pager_r&r`s      r.rJzSimpleScrapingLocator._fetch�s���	��.�$�$�&�&�C�
+��
%��=�=��-�-�D��|� ���(�(�*�*�*�*�&*�Z�	%�	%�	��c��t�z�1�1�%� $�
���t� 4� 4� 4�(,�(>�(>�t�(D�(D�!=�(,�(:�(:�4��c�(J�(J�!=�$*�L�L�1F��c�$R�$R�$R�$(�N�$6�$6�t�$<�$<�$<���#7�%�%�%� $��%����2����
.�
.�
.�����	�!���-�-�-�-�-�-�-�-�����
.������(�(�*�*�*�*����(�(�*�*�*�*�����
���1	sZ�C5�C5�&A<C#�"C5�#
C0�-C5�/C0�0C5�4E
�5
D0�?'D+�&E
�+D0�0E
�
E(c��t|��\}}}}}}|dkrItj�t	|����rtt
|��d��}||jvr+|j|}t�	d||���n�|�
dd��d}d}||jvrt�	d||���n}t|d	d
i���}	t�	d|��|j
�||j�
��}	t�	d|��|	���}
|
�dd��}t$�|��r�|	���}|	���}
|
�d��}|r|j|}||
��}
d}t.�|��}|r|�d��}	|
�|��}
n%#t6$r|
�d��}
YnwxYwt9|
|��}||j|<n�#t:$r1}|jdkrt�d||��Yd}~n�d}~wt@$r_}t�d||��|j!5|j�"|��ddd��n#1swxYwYYd}~n6d}~wtF$r&}t�d||��Yd}~nd}~wwxYw||j|<n#||j|<wxYw|S)a
        Get the HTML for an URL, possibly from an in-memory cache.

        XXX TODO Note: this cache is never actually cleared. It's assumed that
        the data won't get stale over the lifetime of a locator instance (not
        necessarily true for the default_locator).
        �filez
index.htmlzReturning %s from cache: %sr\rrNzSkipping %s due to bad host %szAccept-encoding�identity)rAzFetching %sr'z
Fetched %szContent-Typer5zContent-Encodingzutf-8zlatin-1i�zFetch failed: %s: %s)$r�osr�isdirr	rrr:r�r�r^r=rrTrr(r�r[�HTML_CONTENT_TYPEr��geturlr�decoders�CHARSETrrr�UnicodeErrorr
rr?rrrBr�r�)r<r,r7r�rrar_rbr=rrA�content_type�	final_urlr��encoding�decoderr�r`s                  r.rezSimpleScrapingLocator.get_page�s���)1��
�
�%����a��A��V�����
�
�l�4�.@�.@� A� A���,�s�+�+�\�:�:�C��$�"�"�"��%�c�*�F��L�L�6��V�D�D�D�D��<�<��Q�'�'��*�D��F��t��&�&����=�s�D�I�I�I�I��c�,=�z�+J�K�K�K��!3��L�L���4�4�4��;�+�+�C���+�F�F�D��L�L��s�3�3�3�"�i�i�k�k�G�#*�;�;�~�r�#B�#B�L�(�.�.�|�<�<�=�$(�K�K�M�M�	�#�y�y�{�{��#*�;�;�/A�#B�#B��#�1�&*�m�H�&=�G�#*�7�4�=�=�D�#*��#�N�N�<�8�8���2�'(�w�w�q�z�z�H�:�#'�;�;�x�#8�#8�D�D��+�:�:�:�#'�;�;�y�#9�#9�D�D�D�:����!%�d�I�!6�!6��6<��(��3��� �I�I�I��v��}�}��(�(�)?��a�H�H�H�����������2�2�2��$�$�%;�S�!�D�D�D���2�2���+�+�D�1�1�1�2�2�2�2�2�2�2�2�2�2�2����2�2�2�2���������� �E�E�E��$�$�%;�S�!�D�D�D�D�D�D�D�D�����E����-3�D�$�S�)�)��F�D�$�S�)�2�2�2�2��
s��3D%I/�H/�.I/�/I�I/�I�I/�.M
�/
L?�9'J%� M
�%
L?�2#L�K<�0L�<L	�L�L	�L�M
�
L?�L:�5M
�:L?�?M
�
Mz<a href=[^>]*>([^<]+)<c��t��}|�|j��}|std|jz���|j�|j��D]*}|�|�d�����+|S)rwzUnable to get %sr)	r�rer�r�_distname_rer"r�r�r)r<r_rfr�s    r.rxz,SimpleScrapingLocator.get_distribution_names7s��������}�}�T�]�+�+���	G�"�#5��
�#E�F�F�F��&�/�/��	�:�:�	'�	'�E��J�J�u�{�{�1�~�~�&�&�&�&��
rE)Nr8)rFrGrHrI�zlib�
decompressrnrXrNrPrur(r)r*rSrTrVrcrJrervrxr�r�s@r.r.r.Js%����������?�B�B�����H�$�$�$�$�$�$�6$�$�$�������$$���%E�FH�d�L�L��3�3�3����(���:���B9�9�9�v�2�:�6�7�7�L�
�
�
�
�
�
�
rEr.c�4��eZdZdZ�fd�Zd�Zd�Zd�Z�xZS)�DirectoryLocatorz?
    This class locates distributions in a directory tree.
    c�,��|�dd��|_tt|��jdi|��t
j�|��}t
j�|��std|z���||_
dS)a�
        Initialise an instance.
        :param path: The root of the directory tree to search.
        :param kwargs: Passed to the superclass constructor,
                       except for:
                       * recursive - if True (the default), subdirectories are
                         recursed into. If False, only the top-level directory
                         is searched,
        �	recursiveTzNot a directory: %rNrM)r�r|r�rzrXrjr�abspathrkr�base_dir)r<rr�r�s   �r.rXzDirectoryLocator.__init__Is���� ���K��6�6���.����%�%�.�8�8��8�8�8��w���t�$�$���w�}�}�T�"�"�	A�"�#8�4�#?�@�@�@���
�
�
rEc�6�|�|j��S)z�
        Should a filename be considered as a candidate for a distribution
        archive? As well as the filename, the directory which contains it
        is provided, though not used by the current implementation.
        )r�r�)r<r��parents   r.�should_includezDirectoryLocator.should_includeZs��� � ��!=�>�>�>rEc��iid�}tj|j��D]�\}}}|D]�}|�||��r�tj�||��}t
ddttj�|����dddf��}|�	||��}|r|�
||����|jsn��|S)Nr�rhr5)rj�walkr~r�rr�rr
r}r�r�r|)	r<rtr_�root�dirs�files�fnr,r�s	         r.ruzDirectoryLocator._get_projectbs�����,�,��!#����!7�!7�	�	��D�$���
@�
@���&�&�r�4�0�0�@�����d�B�/�/�B�$�f�b�&2�2�7�?�?�2�3F�3F�&G�&G�&(�"�b�&2�3�3�C� �<�<�S�$�G�G�D��@��1�1�&�$�?�?�?���>�
���
��
rEc���t��}tj|j��D]�\}}}|D]�}|�||��r�tj�||��}tddttj�	|����dddf��}|�
|d��}|r|�|d����|jsn��|S)rwrhr5Nrt)
r�rjr�r~r�rr�rr
r}r�r�r|)r<r_r�r�r�r�r,r�s        r.rxz'DirectoryLocator.get_distribution_namesrs�������!#����!7�!7�	�	��D�$���
1�
1���&�&�r�4�0�0�1�����d�B�/�/�B�$�f�b�&2�2�7�?�?�2�3F�3F�&G�&G�&(�"�b�&2�3�3�C� �<�<�S�$�G�G�D��1��
�
�4��<�0�0�0���>�
���
��
rE)	rFrGrHrIrXr�rurxr�r�s@r.rzrzDso��������������"?�?�?���� ������rErzc��eZdZdZd�Zd�ZdS)�JSONLocatora
    This locator uses special extended metadata (not available on PyPI) and is
    the basis of performant dependency resolution in distlib. Other locators
    require archive downloads before dependencies can be determined! As you
    might imagine, that can be slow.
    c� �td���r�rrrcs r.rxz"JSONLocator.get_distribution_names�r�rEc	�v�iid�}t|��}|�r!|�dg��D�]	}|ddks|ddkr�t|d|d|�d	d
��|j���}|j}|d|_d
|vr|d
rd|d
f|_|�di��|_|�di��|_|||j	<|d�
|j	t�����|d����|S)Nr�r��ptype�sdist�	pyversion�sourcertr�r�zPlaceholder for summary)r�r7r,r�r��requirements�exportsr�)
rr[rr7r�r�r��dependenciesr�r�r�r�r�)r<rtr_r�r�r�r�s       r.ruzJSONLocator._get_project�sL����,�,����%�%���	P�����"�-�-�
P�
P����=�G�+�+�t�K�/@�H�/L�/L��!��f��t�I��)-���)�2K�*M�*M�(,��5�5�5���]�� $�U���
��t�#�#��X��#�#(�$�x�.�"9�D�K�"&�(�(�>�2�">�">���#�x�x�	�2�6�6���'+��t�|�$��v��)�)�$�,����>�>�B�B�4��;�O�O�O�O��
rEN)rFrGrHrIrxrurMrEr.r�r��s?��������E�E�E�����rEr�c�(��eZdZdZ�fd�Zd�Z�xZS)�DistPathLocatorz�
    This locator finds installed distributions in a path. It can be useful for
    adding to an :class:`AggregatingLocator`.
    c���tt|��jdi|��t|t��sJ�||_dS)zs
        Initialise an instance.

        :param distpath: A :class:`DistributionPath` instance to search.
        NrM)r�r�rX�
isinstancer�distpath)r<r�r�r�s   �r.rXzDistPathLocator.__init__�sJ���	.��o�t�$�$�-�7�7��7�7�7��(�$4�5�5�5�5�5� ��
�
�
rEc	���|j�|��}|�iid�}n<|j|d|jt|jg��id|jtdg��ii}|S)Nr�r�r�)r��get_distributionr�r�r�)r<rtr�r_s    r.ruzDistPathLocator._get_project�so���}�-�-�d�3�3���<� �R�0�0�F�F���d����s�D�O�+<�'=�'=�>��D�L�#�t�f�+�+�6��F�
�
rE)rFrGrHrIrXrur�r�s@r.r�r��sQ���������!�!�!�!�!�
�
�
�
�
�
�
rEr�c�j��eZdZdZ�fd�Z�fd�Zd�Zeej	j
e��Z	d�Zd�Z�xZ
S)�AggregatingLocatorzI
    This class allows you to chain and/or merge a list of locators.
    c���|�dd��|_||_tt|��jdi|��dS)a�
        Initialise an instance.

        :param locators: The list of locators to search.
        :param kwargs: Passed to the superclass constructor,
                       except for:
                       * merge - if False (the default), the first successful
                         search from any of the locators is returned. If True,
                         the results from all locators are merged (this can be
                         slow).
        �mergeFNrM)r�r��locatorsr�r�rX)r<r�r�r�s   �r.rXzAggregatingLocator.__init__�sK����Z�Z���/�/��
� ��
�0�� �$�'�'�0�:�:�6�:�:�:�:�:rEc���tt|�����|jD]}|����dSrf)r�r�rhr�)r<r�r�s  �r.rhzAggregatingLocator.clear_cache�sP���
� �$�'�'�3�3�5�5�5��}�	"�	"�G����!�!�!�!�	"�	"rEc�6�||_|jD]	}||_�
dSrf)rkr�r7)r<rnr�s   r.rozAggregatingLocator._set_scheme�s-������}�	#�	#�G�"�G�N�N�	#�	#rEc�B�i}|jD�]}|�|��}|r�|jr�|�di��}|�di��}|�|��|�d��}|r6|r4|���D]\}}	||vr||xx|	zcc<�|	||<� |�d��}
|r|
r|
�|����|j�d}n%d}|D] }|j�|��rd}n�!|r|}n��|S)Nr�r�TF)r�rzr�r[�updaterrUr�)r<rtr_r�r�r�r��dfr�r��dd�founds            r.ruzAggregatingLocator._get_project�st�����}�'	�'	�G��#�#�D�)�)�A��%
��:�$�"�J�J�v�r�2�2�E�$�j�j��B�7�7�G��M�M�!�$�$�$����F�+�+�B��*��*�$)�K�K�M�M�*�*�D�A�q� �B�w�w� "�1�����
�����()��1������I�.�.�B��+�2�+��	�	�'�*�*�*���|�+� $��� %��!"�&�&�A�#�|�1�1�!�4�4�&�(,�� %��&���!"������
rEc��t��}|jD]*}	||���z}�#t$rY�'wxYw|Sr�)r�r�rxrs)r<r_r�s   r.rxz)AggregatingLocator.get_distribution_namess`�������}�	�	�G�
��'�8�8�:�:�:����&�
�
�
���
�����
s�1�
>�>)rFrGrHrIrXrhror�rOr7�fgetrurxr�r�s@r.r�r��s����������;�;�;�;�;� "�"�"�"�"�
#�#�#�
�X�g�n�)�;�
7�
7�F�*�*�*�X
�
�
�
�
�
�
rEr�zhttps://pypi.org/simple/r&r'�legacyr�c�@�eZdZdZdd�Zd�Zd�Zd�Zd�Zd�Z	dd
�Z
dS)
�DependencyFinderz0
    Locate dependencies for distributions.
    Nc�^�|pt|_t|jj��|_dS)zf
        Initialise an instance, using the specified locator
        to locate distributions.
        N)�default_locatorr�r!r7)r<r�s  r.rXzDependencyFinder.__init__2s(��
�1�/��� ���!4�5�5����rEc�j�t�d|��|j}||j|<||j||jf<|jD]m}t|��\}}t�d|||��|j�	|t�����||f���ndS)z�
        Add a distribution to the finder. This will update internal information
        about who provides what.
        :param dist: The distribution to add.
        zadding distribution %szAdd to provided: %s, %s, %sN)r�r�rC�
dists_by_name�distsr��providesr�providedr�r�r�)r<r�rt�pr�s     r.�add_distributionz!DependencyFinder.add_distribution:s���	���-�t�4�4�4��x��#'���4� �+/��
�D�$�,�'�(���	G�	G�A�2�1�5�5�M�D�'��L�L�6��g�t�L�L�L��M�$�$�T�3�5�5�1�1�5�5�w��o�F�F�F�F�	G�	GrEc�F�t�d|��|j}|j|=|j||jf=|jD]_}t|��\}}t�d|||��|j|}|�	||f��|s|j|=�`dS)z�
        Remove a distribution from the finder. This will update internal
        information about who provides what.
        :param dist: The distribution to remove.
        zremoving distribution %sz Remove from provided: %s, %s, %sN)
r�r�rCr�r�r�r�rr��remove)r<r�rtr�r��ss      r.�remove_distributionz$DependencyFinder.remove_distributionIs���	���/��6�6�6��x����t�$��J��d�l�+�,���	(�	(�A�2�1�5�5�M�D�'��L�L�;�T�7�D�Q�Q�Q��
�d�#�A�
�H�H�g�t�_�%�%�%��
(��M�$�'��
	(�	(rEc���	|j�|��}nD#t$r7|���d}|j�|��}YnwxYw|S)z�
        Get a version matcher for a requirement.
        :param reqt: The requirement
        :type reqt: str
        :return: A version matcher (an instance of
                 :class:`distlib.version.Matcher`).
        r)r7rUr"r^)r<�reqtrUrts    r.�get_matcherzDependencyFinder.get_matcher[sj��	0��k�)�)�$�/�/�G�G��&�	0�	0�	0��:�:�<�<��?�D��k�)�)�$�/�/�G�G�G�	0�����s��>A�Ac��|�|��}|j}t��}|j}||vrP||D]G\}}	|�|��}n#t
$rd}YnwxYw|r|�|��n�H|S)z�
        Find the distributions which can fulfill a requirement.

        :param reqt: The requirement.
         :type reqt: str
        :return: A set of distribution which can fulfill the requirement.
        F)r�rCr�r�r�r"r�)	r<r�rUrtr_r�r��providerr�s	         r.�find_providerszDependencyFinder.find_providersks����"�"�4�(�(���{�������=���8���%-�d�^�
�
�!���"�#�M�M�'�2�2�E�E��.�"�"�"�!�E�E�E�"�������J�J�x�(�(�(��E���
s�A�A)�(A)c�
�|j|}t��}|D]F}|�|��}|�|j��s|�|���G|r)|�d||t
|��f��d}ns|�|��|j|=|D]<}|j�|t�����|���=|�	|��d}|S)a�
        Attempt to replace one provider with another. This is typically used
        when resolving dependencies from multiple sources, e.g. A requires
        (B >= 1.0) while C requires (B >= 1.1).

        For successful replacement, ``provider`` must meet all the requirements
        which ``other`` fulfills.

        :param provider: The provider we are trying to replace with.
        :param other: The provider we're trying to replace.
        :param problems: If False is returned, this will contain what
                         problems prevented replacement. This is currently
                         a tuple of the literal string 'cantreplace',
                         ``provider``, ``other``  and the set of requirements
                         that ``provider`` couldn't fulfill.
        :return: True if we can replace ``other`` with ``provider``, else
                 False.
        �cantreplaceFT)
�reqtsr�r�r�r�r��	frozensetr�r�r�)	r<r��other�problems�rlist�	unmatchedr�rUr_s	         r.�try_to_replacezDependencyFinder.try_to_replace�s��&�
�5�!���E�E�	��	!�	!�A��&�&�q�)�)�G��=�=��!1�2�2�
!��
�
�a� � � ���	��L�L�-��5�#�I�.�.�0�
1�
1�
1��F�F�
�$�$�U�+�+�+��
�5�!��
>�
>���
�%�%�h����6�6�:�:�1�=�=�=�=��!�!�(�+�+�+��F��
rEFc���i|_i|_i|_i|_t	|pg��}d|vr)|�d��|t	gd���z}t
|t��r |x}}t�	d|��nM|j
�||���x}}|�td|z���t�	d|��d|_
t	��}t	|g��}t	|g��}|�rb|���}|j}	|	|jvr|�|��n*|j|	}
|
|kr|�||
|��|j|jz}|j}t	��}
|r(||vr$d	D]!}d
|z}||vr|
t+|d|z��z}
�"||z|
z}|D�]�}|�|��}|�st�	d|��|j
�||���}|�|s|j
�|d���}|�3t�	d
|��|�d|f��n�|j|j}}||f|jvr|�|��|�|��||vr9||vr5|�|��t�	d|j��|D]w}|j}	|	|jvr;|j�|t	�����|���M|j|	}
|
|kr|�||
|���x���|��bt	|j�����}|D]2}||v|_|jr t�	d|j���3t�	d|��||fS)a�
        Find a distribution and all distributions it depends on.

        :param requirement: The requirement specifying the distribution to
                            find, or a Distribution instance.
        :param meta_extras: A list of meta extras such as :test:, :build: and
                            so on.
        :param prereleases: If ``True``, allow pre-release versions to be
                            returned - otherwise, don't return prereleases
                            unless they're all that's available.

        Return a set of :class:`Distribution` instances and a set of
        problems.

        The distributions returned should be such that they have the
        :attr:`required` attribute set to ``True`` if they were
        from the ``requirement`` passed to ``find()``, and they have the
        :attr:`build_time_dependency` attribute set to ``True`` unless they
        are post-installation dependencies of the ``requirement``.

        The problems should be a tuple consisting of the string
        ``'unsatisfied'`` and the requirement which couldn't be satisfied
        by any distribution known to the locator.
        z:*:)z:test:z:build:z:dev:zpassed %s as requirement)r�NzUnable to locate %rz
located %sT)�test�build�devz:%s:z%s_requireszNo providers found for %rzCannot satisfy %r�unsatisfiedzAdding %s to install_distsz#%s is a build-time dependency only.zfind done for %s)r�r�r�r�r�r�r�rr�r�r�r�r�	requestedr�rCr�r��run_requires�
meta_requires�build_requires�getattrr�r�r��name_and_versionr��values�build_time_dependency)r<r��meta_extrasr�r�rr��todo�
install_distsrtr��ireqts�sreqts�ereqtsrCr`�	all_reqtsr��	providersr��nr�r�r�s                        r.�findzDependencyFinder.find�sp��4��
���
������
��+�+��,�,���K������u�%�%�%��3�=�=�=�>�>�>�K��k�<�0�0�	.�&�&�D�5��L�L�3�U�;�;�;�;��<�.�.�{�;F�/�H�H�
H�D�5��|�&�'<�{�'J�K�K�K��L�L��u�-�-�-�����5�5���D�6�{�{���U�G���
��1	D��8�8�:�:�D��8�D��4�-�-�-��%�%�d�+�+�+�+��*�4�0���D�=�=��'�'��e�X�>�>�>��&��);�;�F��(�F��U�U�F��
E�t�}�4�4�3�E�E�C����A��K�'�'��'�$�
��0C�"D�"D�D������&�0�I��
D�
D�� �/�/��2�2�	� �D��L�L�!<�a�@�@�@�#�|�2�2�1�+�2�N�N�H� �'��'�#'�<�#6�#6�q�d�#6�#K�#K���'����%8�!�<�<�<� ���m�Q�%7�8�8�8�8�'�|�X�-=�1���q�6���3�3� �H�H�X�.�.�.�!�
�
�h�/�/�/���;�;�4�=�+@�+@�)�-�-�h�7�7�7�"�L�L�)E�)1�)B�D�D�D�"�D�D�A��5�D��4�#5�5�5��
�-�-�a����7�7�;�;�A�>�>�>�>� $� 2�4� 8�� �A�:�:� �/�/��5�(�C�C�C��D�S�1	D�f�D�J�%�%�'�'�(�(���	4�	4�D�)-�]�)B�D�&��)�
4����B�!�2�4�4�4�����'��/�/�/��h��rErf)NF)rFrGrHrIrXr�r�r�r�r�r�rMrEr.r�r�-s���������6�6�6�6�
G�
G�
G�(�(�(�$��� ���0&�&�&�Pl�l�l�l�l�lrEr�rf)Lr1�iorr�loggingrjr}r(r@�ImportError�dummy_threadingrwr5r�compatrrrr	r
rrr
rrr:rrrr�databaserrrr�rr�utilrrrrrrrr r�r!r"r�r#r$�	getLoggerrFr�r)r�r*rorlr*r/r1�objectrOr�r�r
r.rzr�r�r�r�r�r�rMrEr.�<module>r�s���������������������	�	�	�	�����	�	�	�	�(��������(�(�(�'�'�'�'�'�'�(��������������3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�@�?�?�?�?�?�?�?�?�?�4�4�4�4�4�4�4�4�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�9�8�8�8�8�8�8�8�'�'�'�'�'�'�'�'�	��	�8�	$�	$���b�j�.�/�/��
�"�*�2�B�D�
9�
9���B�J�?�@�@��'�
�����F�F�F�F�F�)�F�F�F�@~�~�~�~�~�f�~�~�~�B
.�.�.�.�.�W�.�.�.�bB�B�B�B�B�g�B�B�B�J7�7�7�7�7�6�7�7�7�tw�w�w�w�w�G�w�w�w�t?�?�?�?�?�w�?�?�?�D$�$�$�$�$�'�$�$�$�N�����g����8V�V�V�V�V��V�V�V�v%�$�)�)�*D�25�7�7�7�#�	%�%�%��
�	��j�j�j�j�j�v�j�j�j�j�js�%�	1�1

Zerion Mini Shell 1.0