Current File : //usr/lib/python3/dist-packages/pip/_vendor/distlib/__pycache__/locators.cpython-312.pyc
�

/�g7���
�ddlZddlmZddlZddlZddlZddlZddlZ	ddlZddlZddl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
l1m2Z2m3Z3ejhe5�Z6ejnd�Z8ejndejr�Z:ejnd
�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'�(�ZIeIj�ZJGd)�d*e?�ZKy#e	$rddl
ZY��]wxYw),�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��}	|j�|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.
    �@��timeout�close)�
DEFAULT_INDEXr�
list_packages)�url�clients  �>/usr/lib/python3/dist-packages/pip/_vendor/distlib/locators.py�get_all_distribution_namesr/*sD���{���
��c�
*�F���#�#�%���w������w���s	�4�Ac�"�eZdZdZd�ZexZxZZy)�RedirectHandlerzE
    A class to work around a bug in some Python 3.2.x releases.
    c��d}dD]
}||vs�||}n|�yt|�}|jdk(r>t|j�|�}t	|d�r|j|�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�#���?�?�b� ��S�-�-�/��8�F��w� 0�1��&�&�s�F�3�%����"�1�1�$��R��s�29�;�	;�N)�__name__�
__module__�__qualname__�__doc__r;�http_error_301�http_error_303�http_error_307�rEr.r1r19s���;�(8F�E�N�E�^�nrEr1c��eZdZdZdZdZdZdZedzZdd�Z	d�Z
d	�Zd
�Zd�Z
d�Zee
e�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zdd�Zy)�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)rPc��i|_||_tt��|_d|_t
j�|_y)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__is9��������#�?�#4�5�������k�k�m��rEc�@�g}|jj�sb	|jjd�}|j|�|jj�|jj�s�b|S#|jj$rY��wxYw)z8
        Return any errors which have occurred.
        F)rV�empty�get�append�Empty�	task_done)r<�result�es   r.�
get_errorszLocator.get_errors|s������+�+�#�#�%�
��K�K�O�O�E�*���
�
�a� �
�K�K�!�!�#�
�+�+�#�#�%��
���;�;�$�$�
��
�s�,B�B�Bc�$�|j�y)z>
        Clear any errors which may have been logged.
        N)r`�r<s r.�clear_errorszLocator.clear_errors�s��
	
���rEc�8�|jj�y�N)rR�clearrbs r.�clear_cachezLocator.clear_cache�s�������rEc��|jSre��_schemerbs r.�_get_schemezLocator._get_scheme�s���|�|�rEc��||_yreri)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�ErEc��td��)�J
        Return all the distribution names known to this locator.
        rprqrbs r.�get_distribution_nameszLocator.get_distribution_names�s��"�"D�E�ErEc���|j�|j|�}|S||jvr|j|}|S|j�|j|�}||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.
        )rRrtrc)r<rsr^s   r.�get_projectzLocator.get_project�sy���;�;���&�&�t�,�F��
�
�T�[�[�
 ��[�[��&�F�
�
�
�����&�&�t�,�F� &�D�K�K����
rEc�6�t|�}tj|j�}d}|j	d�}|j	|j
�}|rt
t|�|j�}|jdk(d|jv||||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���%�%�a�f�f�-���
��$�$�V�,��"�+�+�D�,H�,H�I���&�u�X�����H�J����G�#�Z�1�8�8�%;���:�x�A�	ArEc���|}|r^|j|�}|j|�}||kDr|}||k7rtjd||�|Stjd||�|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�sk���������%�B�����%�B��B�w�����~����7��t�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�5rEc���d�}d}t|�\}}}}}	}
|
j�jd�rtj	d||
�t
j
|
�}|r|j�\}}
nd\}}
|}|r
|ddk(r|dd}|jd�r�	t|�}t||j�stj	d	|�n�|�d
}n||j|�}|rw|j|j|jt|||||	df�dj!|j"D�cgc]}d
j!t%|dd����!c}�d�}n�|j|j*�stj	d|�n�t-j.|�x}}|j*D]}}|j|�s�|dt1|�}|j3||�}|stj	d|�n.|\}}}|r	|||�r|||t|||||	df�d�}|r||d<n|r
|r|
|d|z<|Scc}w#t&$rtj)d|�Y�4wxYw)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�0�t|�t|�k(Sre)r )�name1�name2s  r.�same_projectz:Locator.convert_url_to_download_info.<locals>.same_project�s��!�%�(�N�5�,A�A�ArENzegg=z %s: version hint in fragment: %r)NN����/rPzWheel not compatible: %sTr5z, �.�)rs�versionr�r,�python-versionzinvalid path for wheel: %szNot downloadable: %sz No match for project/version: %s)rsr�r�r,r��	%s_digest)r�lower�
startswithr�r��HASHER_HASH�match�groupsrr#r$r�rsr�r�r�join�pyver�list�	Exception�warningr�r|r}�lenr)r<r,r�r�r^r7r�r~�params�query�frag�m�algo�digest�origpath�wheel�include�vr��extr�rsr�r�s                        r.�convert_url_to_download_infoz$Locator.convert_url_to_download_info�s}��	B���4<�S�M�1����f�e�T��:�:�<�"�"�6�*��L�L�;�%�t�
-����d�#����8�8�:�L�D�&�%�L�D�&����D��H��O����9�D��=�=�� �
C��d���$�U�D�O�O�<��L�L�!;�T�B�#�+�"&��".�u�z�z�<�"H���$)�J�J�',�}�}�(-���#-�v�v�x�/5�u�b�/B�$C�.2�i�i�@E��� L�1����$�q���u�+�!6� L�/N�
"������t�;�;�<��L�L�/��6�'�0�0��6�6�D�8��3�3�
���=�=��%��
�#�c�(��+�D��+�+�D�,�?�A�����%G��N�/0�,��g�u�+�|�L�$�/O�(,�+2�,4�'1�6�6�8�39�5�"�3F�(G�	&�F� %�;@��'7� 8��%
�&�d�)/�F�;��%�&��
��;!M���
C����;�T�B�
C�s%�!BI�=$I�!	I�I�I5�4I5c�|�d}d|vr|d}dD]}||vs�|||f}n|sdD]}d|z}||vs�
|||f}|S|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��
��)�
��!�D�(���$�;�"�D��I�.�F���
�
�
�
rEc���|jd�}|jd�}||vr||}|j}n$t|||j��}|j}|j	|�x|_}|d}||d|<|j|dk7rM|j|j|�|_|dj|t��j|�||_|||<y)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.
        rsr��r7r,r��urlsN)�pop�metadatarr7r�r��
source_urlr��
setdefault�set�add�locator)	r<r^r�rsr��dist�mdr�r,s	         r.�_update_version_datazLocator._update_version_dataJs����x�x�����(�(�9�%���f���'�?�D����B��T�7�4�;�;�?�D����B�#�/�/��5�5���f��5�k��!'��y��#��
�=�=�D��K�'� �O�O�B�M�M�3�?�B�M��6�N�%�%�g�s�u�5�9�9�#�>������w�rEc���d}t|�}|�td|z��t|j�}|j	|j
�x|_}tjd|t|�j�|j|j�}t|�dkDr�g}|j}	|D]?}
|
dvr�	|j|
�sn%|s|	|
�js|j!|
��At|�dkDrt'||j(��}|r tjd	|�|d
}||}|r�|j*r|j*|_|j-di�j-t/��|_i}|j-di�}
|j0D]}||
vs�|
|||<�||_d|_|S#t"$rtj%d||
�Y��<wxYw)
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!r7rT�requirementr�r��typerFryrsr��
version_classr��
is_prereleaser[r�r��sortedrC�extrasrZr��
download_urlsr�)r<r��prereleasesr^�rr7rT�versions�slist�vcls�kr��d�sdr,s               r.�locatezLocator.locateas������k�*���9�"�#@�;�#N�O�O��D�K�K�(��!'����
�
�!>�>���w����'��$�w�-�2H�2H�I��#�#�A�F�F�+���x�=�1���E��(�(�D��
���+�+���"�=�=��+��&�d�1�g�.C�.C�!�L�L��O��
��5�z�A�~��u�&�*�*�5������.��6���)��!�'�*����x�x� !����
�#+�<�<���#;�#?�#?����#O�F� ��A����i��,�B��+�+�
%���"�9���W�A�c�F�
%��F�N�����
��)!���N�N�#>���K���s�7G� G5�4G5)�default)F)rFrGrHrI�source_extensions�binary_extensions�excluded_extensionsr�r�rWr`rcrgrkrn�propertyr7rtrwryr�r�rr�r�r�r�rMrEr.rOrOYs����P��0��#���J�/�)�;��$�&������k�;�
/�F�
F�F��"
A��,6�G�R�.�.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|�
di|��||_t	|d��|_y)z�
        Initialise an instance.

        :param url: The URL to use for XML-RPC.
        :param kwargs: Passed to the superclass constructor.
        r&r'NrM)�superr�rW�base_urlrr-�r<r,�kwargs�	__class__s   �r.rWzPyPIRPCLocator.__init__�s,���	�n�d�,�6�v�6���
�!�#�s�3��rEc�H�t|jj��S�rv)r�r-r+rbs r.rwz%PyPIRPCLocator.get_distribution_names�s���4�;�;�,�,�.�/�/rEc���iid�}|jj|d�}|D�]8}|jj||�}|jj||�}t	|j
��}|d|_|d|_|jd�|_	|jdg�|_
|jd�|_t|�}|s��|d	}	|	d
|_
|j|	�|_||_|||<|D]L}	|	d
}
|j|	�}|dj#|t%��j'|
�||d|
<�N��;|S)
Nr�Tr�rsr��license�keywords�summaryrr,r�r�)r-�package_releases�release_urls�release_datarr7rsr�rZr�r�r�rr�r�r�r�r�r�r�)r<rsr^r�r�r��datar�r�r�r,r�s            r.rtzPyPIRPCLocator._get_project�sZ����,���;�;�/�/��d�;���	4�A��;�;�+�+�D�!�4�D��;�;�+�+�D�!�4�D��t�{�{�3�H� ��L�H�M�#�I��H��#�x�x�	�2�H�� $����R� 8�H��#�x�x�	�2�H����)�D���A�w��&*�5�k��#�"�.�.�t�4���#��� ��q�	� �4�D��u�+�C�!�-�-�d�3�F��6�N�-�-�a���7�;�;�C�@�-3�F�9�%�c�*�	4�!	4�*�
rE�rFrGrHrIrWrwrt�
__classcell__�r�s@r.r�r��s����	4�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�L��tt|�
di|��t|�|_y)NrM)r�r�rWrr�r�s   �r.rWzPyPIJSONLocator.__init__�s!���
�o�t�-�7��7�$�S�)��
rEc��td���rvzNot available from this locatorrqrbs r.rwz&PyPIJSONLocator.get_distribution_names����"�"C�D�DrEc���iid�}t|jdt|�z�}	|jj	|�}|j�j
�}tj|�}t|j��}|d}|d|_|d|_|jd�|_|jdg�|_|jd	�|_t#|�}||_|||j<|d
D]�}	|	d}|j&j)|�|j+|	�|j,|<|d
j/|jt1��j)|�|j+|	�|d|<��|d
j3�D]�\}
}|
|jk(r�t|j��}|j|_|
|_t#|�}
||
_|
||
<|D]�}	|	d}|
j&j)|�|j+|	�|
j,|<|d
j/|
t1��j)|�|j+|	�|d|<����	|S#t4$rE}|j6j9t;|��t<j?d|�Yd}~|Sd}~wwxYw)Nr�z%s/jsonr�r�rsr�r�r�r�r�r,r��releaseszJSON fetch failed: %s) rr�rrS�open�read�decode�json�loadsrr7rsr�rZr�r�r�rr�r�r�r�r�r�r��itemsr�rV�putrr��	exception)r<rsr^r,�respr�r�r�r�r�r��infos�omd�odistr_s               r.rtzPyPIJSONLocator._get_project�s�����,���d�m�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�B�K����)�,�B�J���#�D��D�L�!%�F�2�:�:���&�	�
@���5�k���"�"�&�&�s�+�$(�$4�$4�T�$:����S�!��v��)�)�"�*�*�c�e�<�@�@��E�)-�)9�)9�$�)?��y�!�#�&�
@�#$�J�-�"5�"5�"7�
D�����b�j�j�(���d�k�k�2���7�7���%���$�S�)�� $��
�"'��w��!�D�D��u�+�C��'�'�+�+�C�0�)-�)9�)9�$�)?�E�M�M�#�&��6�N�-�-�g�s�u�=�A�A�#�F�-1�-=�-=�d�-C�F�9�%�c�*�D�
D�4�
���	9��K�K�O�O�I�a�L�)����4�a�8�8��
��	9�s�I.J�	K(�#:K#�#K(r�r�s@r.r�r��s����*�E�3rEr�c�"�eZdZdZej
dejejzejz�Z	ej
dejejz�Z
d�Zej
dej�Ze
d��Zy)�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|_|_|jj	|j�}|r|jd�|_yy)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.rWz
Page.__init__ sH��
��	�#&�&��
����J�J���d�i�i�(����G�G�A�J�D�M�
rEz[^a-z0-9$&+,/:;=?@.#%_\\|-]c���d�}t�}|jj|j�D]�}|j	d�}|dxs!|dxs|dxs|dxs|dxs|d}|d	xs|d
xs|d}t|j|�}t|�}|jjd�|�}|j||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�Z�t|�\}}}}}}t||t|�|||f�S)zTidy up an URL.)rrr)r,r7r�r~r�r�r�s       r.�cleanzPage.links.<locals>.clean4s;��8@��
�5�F�F�D�&�%���v�v�u�T�{�%�u�d�4�5�
5rEr5�rel1�rel2�rel3�rel4�rel5�rel6r�r��url3c�<�dt|jd��zS)Nz%%%2xr)�ordr)r�s r.�<lambda>zPage.links.<locals>.<lambda>Bs��w��Q�W�W�Q�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�����Z�Z�(�(����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�#�N�C��J�J��S�z�"�	#���N�D�A���
rEN)rFrGrHrI�re�compile�I�S�XrrrWr!rr$rMrEr.r
r
s����
�B�J�J���T�T�B�D�D�[�2�4�4��	
�E�

�B�J�J�?��������M�E�	'���
�
�9�2�4�4�@�I����rEr
c����eZdZdZej
d�d�d�Zd�fd�	Zd�Zd�Z	d�Z
ejd	ej�Zd
�Zd�Zd�Zd
�Zd�Zejd�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�\�tjt|���j�S)N)�fileobj)�gzip�GzipFilerr���bs r.rzSimpleScrapingLocator.<lambda>Ts��$�-�-���
�;�@�@�B�rEc��|SrerMr0s r.rzSimpleScrapingLocator.<lambda>Us��!�rE)�deflater.�nonec�d��tt|�
di|��t|�|_||_i|_t�|_tj�|_t�|_d|_
||_tj �|_tj �|_d|_y)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+rWrr�r(�_page_cacher��_seenrrU�	_to_fetch�
_bad_hosts�skip_externals�num_workers�	threading�RLock�_lock�_gplock�platform_check)r<r,r(r;r�r�s     �r.rWzSimpleScrapingLocator.__init__Xs����	�#�T�3�=�f�=�$�S�)��
��������U��
��������%���#���&����_�_�&��
�
!���(���#��rEc���g|_t|j�D]T}tj|j
��}d|_|j�|jj|��Vy)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_threadsss[����
��t�'�'�(�	$�A�� � ����4�A��A�H�
�G�G�I��M�M� � ��#�		$rEc��|jD]}|jjd��|jD]}|j��g|_y)zu
        Tell all the threads to terminate (by sending a sentinel value) and
        wait for them to do so.
        N)rCr8rr�)r<r�s  r.�
_wait_threadsz#SimpleScrapingLocator._wait_threads�sL�����	%�A��N�N���t�$�	%����	�A�
�F�F�H�	���
rEc�"�iid�}|j5||_||_t|jdt|�z�}|jj�|jj�|j�	tjd|�|jj|�|jj�|j�|`ddd�|S#|j�wxYw#1swY|SxYw)Nr�z%s/zQueueing %s)r?r^r�rr�rr7rfr6rJr�r�r8rr�rL)r<rsr^r,s    r.rtz"SimpleScrapingLocator._get_project�s�����,��
�\�\�
	� �D�K� $�D���$�-�-���t��)<�=�C��J�J�������"�"�$��!�!�#�
%����]�C�0����"�"�3�'����#�#�%��"�"�$���
	��
���"�"�$��
	��
�s%�A5D�AC/�D�/D�D�Dz<\b(linux_(i\d86|x86_64|arm\w+)|win(32|_amd64)|macosx_?\d+)\bc�8�|jj|�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�2rEc�0�|jr|j|�rd}n|j||j�}tjd||�|r3|j5|j|j|�ddd�|S|S#1swY|SxYw)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)	r@rPr�r�r�r�r>r�r^)r<r,r�s   r.�_process_downloadz'SimpleScrapingLocator._process_download�s������4�#>�#>�s�#C��D��4�4�S�$�:K�:K�L�D����1�3��=�����
=��)�)�$�+�+�t�<�
=���t��
=���s�"B�Bc��t|�\}}}}}}|j|j|jz|jz�rd}n�|j
r|j
|j�sd}nm|j
|j�sd}nO|dvrd}nH|dvrd}nA|j|�rd}n-|jdd�d}	|	j�dk(rd}nd}tjd	||||�|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)
rrr�r�r�r:r�r�rP�splitr�r�r�)
r<�link�referrerr#r7r�r~�_r^�hosts
          r.�
_should_queuez#SimpleScrapingLocator._should_queue�s���
)1���%����a��A��=�=��/�/�$�2H�2H�H��1�1�2�3��F�
�
 �
 �������)G��F��$�$�T�]�]�3��F�
�0�
0��F�
�3�
3��F�
�
(�
(��
.��F��<�<��Q�'��*�D��z�z�|�{�*��������:�D�#��v�	'��
rEc���	|jj�}	|r�|j|�}|�	|jj��M|jD]�\}}||j
vs�	|j
j
|�|j|�sE|j|||�r2tjd||�|jj|���|jj�|sy��#t$rY��wxYw#t$r.}|jjt|��Yd}~�_d}~wwxYw#|jj�wxYw)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.
        NzQueueing %s from %s)r8rZ�get_pager]r$r7r�rRr_r�r�rrr�rVr)r<r,�pager[r#r_s      r.rFzSimpleScrapingLocator._fetch�s1����.�.�$�$�&�C�
+���=�=��-�D��|� ����(�(�*�&*�Z�Z�	%�	��c��t�z�z�1�%� $�
�
���t� 4�(,�(>�(>�t�(D�(,�(:�(:�4��c�(J�$*�L�L�1F��c�$R�$(�N�N�$6�$6�t�$<��	%����(�(�*���1��$8�%� $�%���
.������	�!��-�-��
.�����(�(�*�sT�D� D�0A1D�!D�	D
�
D�D
�
D�	E�$E�=E
�E�E
�
E&c�$�t|�\}}}}}}|dk(r=tjjt	|��rtt
|�d�}||jvr(|j|}tjd||�|S|jdd�d}d}||jvrtjd||�|St|d	d
i��}	tjd|�|jj||j�
�}	tjd|�|	j!�}
|
j#dd�}t$j'|�r�|	j)�}|	j+�}
|
j#d�}|r|j,|}||
�}
d}t.j1|�}|r|j3d�}	|
j5|�}
t9|
|�}||j|<||j|<|S#t6$r|
j5d�}
Y�HwxYw#t:$r0}|j<dk7rtj?d||�Yd}~�ed}~wt@$r^}tj?d||�|jB5|jjE|�ddd�n#1swYnxYwYd}~��d}~wtF$r!}tj?d||�Yd}~��d}~wwxYw#||j|<wxYw)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: %srXrrNzSkipping %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	rrr6r�r�rZr9rrSr�r(r�rZ�HTML_CONTENT_TYPEr��geturlr��decoders�CHARSETr
rr��UnicodeErrorr
rr?rrr>r�r�)r<r,r7r�r~r]r^r^r=rrA�content_type�	final_urlr��encoding�decoderr�r_s                  r.razSimpleScrapingLocator.get_page�s���)1��
�%����a��A��V�����
�
�l�4�.@� A��,�s�+�\�:�C��$�"�"�"��%�%�c�*�F��L�L�6��V�D�T�
�Q�<�<��Q�'��*�D��F��t���&����=�s�D�I�J�
�G�c�,=�z�+J�K��!3��L�L���4��;�;�+�+�C����+�F�D��L�L��s�3�"�i�i�k�G�#*�;�;�~�r�#B�L�(�.�.�|�<�$(�K�K�M�	�#�y�y�{��#*�;�;�/A�#B��#�&*�m�m�H�&=�G�#*�4�=�D�#*��#�N�N�<�8���'(�w�w�q�z�H�:�#'�;�;�x�#8�D�"&�d�I�!6��6<��(�(��3�-3�D�$�$�S�)��
�� ,�:�#'�;�;�y�#9�D�:��!�I��v�v��}��(�(�)?��a�H����2��$�$�%;�S�!�D����2����+�+�D�1�2�2�2��� �E��$�$�%;�S�!�D�D��E��-3�D�$�$�S�)�s��C>H5�H�)H5�H2�/H5�1H2�2H5�5	K;�>&I)�$K>�)K;�5#K�J=�4	K�=K	�K�	K>�K;�K6�1K>�6K;�;K>�>Lz<a href=[^>]*>([^<]+)<c��t�}|j|j�}|std|jz��|jj|j�D]"}|j|jd���$|S)rvzUnable to get %sr)	r�rar�r�_distname_rerr�r�r)r<r^rbr�s    r.rwz,SimpleScrapingLocator.get_distribution_names7sr������}�}�T�]�]�+���"�#5��
�
�#E�F�F��&�&�/�/��	�	�:�	'�E��J�J�u�{�{�1�~�&�	'��
rE)N�
)rFrGrHrI�zlib�
decompressrjrWrJrLrtr%r&r'rOrPrRr_rFrarrrwr�r�s@r.r+r+Js������?�?�B���H�$�6$���$$����%E�FH�d�d�L��3��(�:�B9�v�2�:�:�6�7�L�
rEr+c�4��eZdZdZ�fd�Zd�Zd�Zd�Z�xZS)�DirectoryLocatorz?
    This class locates distributions in a directory tree.
    c���|jdd�|_tt|�di|��t
jj|�}t
jj|�std|z��||_
y)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�ryr�rwrWrfr~�abspathrgr�base_dir)r<r~r�r�s   �r.rWzDirectoryLocator.__init__Isd��� ���K��6���
���.�8��8��w�w���t�$���w�w�}�}�T�"�"�#8�4�#?�@�@���
rEc�8�|j|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.
        )rr�)r<r��parents   r.�should_includezDirectoryLocator.should_includeZs��� � ��!=�!=�>�>rEc��iid�}tj|j�D]�\}}}|D]�}|j||�s�tjj||�}t
ddttjj|��dddf�}|j||�}|s��|j||���|jr��|S|S)Nr�rdr5)rf�walkr{r~r~r�rr
rzr�r�ry)	r<rsr^�root�dirs�files�fnr,r�s	         r.rtzDirectoryLocator._get_projectbs�����,��!#������!7�	��D�$���
@���&�&�r�4�0������d�B�/�B�$�f�b�&2�2�7�7�?�?�2�3F�&G�&(�"�b�&2�3�C� �<�<�S�$�G�D���1�1�&�$�?�
@��>�>���
�	��
rEc��t�}tj|j�D]�\}}}|D]�}|j	||�s�tj
j
||�}tddttj
j|��dddf�}|j|d�}|s��|j|d���|jr��|S|S)rvrdr5Nrs)
r�rfr�r{r~r~r�rr
rzr�r�ry)r<r^r�r�r�r�r,r�s        r.rwz'DirectoryLocator.get_distribution_namesrs������!#������!7�	��D�$���
1���&�&�r�4�0������d�B�/�B�$�f�b�&2�2�7�7�?�?�2�3F�&G�&(�"�b�&2�3�C� �<�<�S�$�G�D���
�
�4��<�0�
1��>�>���
�	��
rE)	rFrGrHrIrWr~rtrwr�r�s@r.rwrwDs�����"?�� rErwc��eZdZdZd�Zd�Zy)�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�rqrbs r.rwz"JSONLocator.get_distribution_names�r�rEc	��iid�}t|�}|r�|jdg�D]�}|ddk7s|ddk7r�t|d|d|jd	d
�|j��}|j}|d|_d
|vr|d
rd|d
f|_|jdi�|_|jdi�|_|||j<|dj|jt��j|d���|S)Nr�r��ptype�sdist�	pyversion�sourcersr�r�zPlaceholder for summary)r�r7r,r�r��requirements�exportsr�)
rrZrr7r�r�r��dependenciesr�r�r�r�r�)r<rsr^r�r�r�r�s       r.rtzJSONLocator._get_project�s����,����%�������"�-�
P����=�G�+�t�K�/@�H�/L��!��f��t�I��)-���)�2K�*M�(,���5���]�]�� $�U���
��t�#��X��#(�$�x�.�"9�D�K�"&�(�(�>�2�">���#�x�x�	�2�6���'+��t�|�|�$��v��)�)�$�,�,���>�B�B�4��;�O�%
P�&�
rEN)rFrGrHrIrwrtrMrEr.r�r��s���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|�
di|��t|t�sJ�||_y)zs
        Initialise an instance.

        :param distpath: A :class:`DistributionPath` instance to search.
        NrM)r�r�rW�
isinstancer�distpath)r<r�r�r�s   �r.rWzDistPathLocator.__init__�s/���	�o�t�-�7��7��(�$4�5�5�5� ��
rEc	���|jj|�}|�iid�}|S|j|d|jt|jg�id|jtdg�ii}|S)Nr�r�r�)r��get_distributionr�r�r�)r<rsr�r^s    r.rtzDistPathLocator._get_project�ss���}�}�-�-�d�3���<� �R�0�F��
�	���d�����s�D�O�O�+<�'=�>��D�L�L�#�t�f�+�6��F�
�
rE)rFrGrHrIrWrtr�r�s@r.r�r��s����!�
rEr�c�x��eZdZdZ�fd�Z�fd�Zd�Zeejje�Z	d�Zd�Z�xZ
S)�AggregatingLocatorzI
    This class allows you to chain and/or merge a list of locators.
    c�h��|jdd�|_||_tt|�di|��y)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�rW)r<r�r�r�s   �r.rWzAggregatingLocator.__init__�s1����Z�Z���/��
� ��
�
� �$�0�:�6�:rEc�l��tt|��|jD]}|j��yre)r�r�rgr�)r<r�r�s  �r.rgzAggregatingLocator.clear_cache�s0���
� �$�3�5��}�}�	"�G����!�	"rEc�B�||_|jD]	}||_�yre)rjr�r7)r<rmr�s   r.rnzAggregatingLocator._set_scheme�s#������}�}�	#�G�"�G�N�	#rEc�0�i}|jD�]}|j|�}|s�|jr�|jdi�}|jdi�}|j	|�|jd�}|r1|r/|j�D]\}}	||vr||xx|	zcc<�|	||<�|jd�}
|s��|
s��|
j	|���|j�d}n(d}|D]!}|jj|�s�d}n|s��|}|S|S)Nr�r�TF)r�ryr�rZ�updaterrTr�)r<rsr^r�r�r�r��dfr�r��dd�founds            r.rtzAggregatingLocator._get_project�s$�����}�}�'	�G��#�#�D�)�A���:�:�"�J�J�v�r�2�E�$�j�j��B�7�G��M�M�!�$����F�+�B���$)�K�K�M�*�D�A�q� �B�w� "�1���
��()��1��	*�
 ���I�.�B��2��	�	�'�*��|�|�+� $�� %��!"�&�A�#�|�|�1�1�!�4�(,�� %�&��!"����
�Q'	�P�
rEc��t�}|jD]}	||j�z}�|S#t$rY�&wxYwr�)r�r�rwrr)r<r^r�s   r.rwz)AggregatingLocator.get_distribution_namessQ������}�}�	�G�
��'�8�8�:�:��	�
�
��'�
��
�s�2�	>�>)rFrGrHrIrWrgrnr�rOr7�fgetrtrwr�r�s@r.r�r��s:����;� "�
#�
�g�n�n�)�)�;�
7�F�*�X
rEr�zhttps://pypi.org/simple/r&r'�legacyr�c�>�eZdZdZd
d�Zd�Zd�Zd�Zd�Zd�Z	dd	�Z
y)�DependencyFinderz0
    Locate dependencies for distributions.
    Nc�j�|xst|_t|jj�|_y)zf
        Initialise an instance, using the specified locator
        to locate distributions.
        N)�default_locatorr�r!r7)r<r�s  r.rWzDependencyFinder.__init__2s&��
�1�/��� ����!4�!4�5��rEc�t�tjd|�|j}||j|<||j||j
f<|jD]]}t|�\}}tjd|||�|jj|t��j||f��_y)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�rs�pr�s     r.�add_distributionz!DependencyFinder.add_distribution:s���	���-�t�4��x�x��#'����4� �+/��
�
�D�$�,�,�'�(����	G�A�2�1�5�M�D�'��L�L�6��g�t�L��M�M�$�$�T�3�5�1�5�5�w��o�F�	GrEc�f�tjd|�|j}|j|=|j||j
f=|jD]Z}t|�\}}tjd|||�|j|}|j||f�|r�N|j|=�\y)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�rsr�r��ss      r.�remove_distributionz$DependencyFinder.remove_distributionIs���	���/��6��x�x�����t�$��J�J��d�l�l�+�,����	(�A�2�1�5�M�D�'��L�L�;�T�7�D�Q��
�
�d�#�A�
�H�H�g�t�_�%���M�M�$�'�
	(rEc��	|jj|�}|S#t$r2|j�d}|jj|�}Y|SwxYw)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)r7rTr"rZ)r<�reqtrTrss    r.�get_matcherzDependencyFinder.get_matcher[s[��	0��k�k�)�)�$�/�G�
���	'�	0��:�:�<��?�D��k�k�)�)�$�/�G���		0�s��7A�Ac��|j|�}|j}t�}|j}||vr5||D]-\}}	|j	|�}|s�|j
|�|S|S#t
$rd}Y�'wxYw)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�rTrsr^r�r��providerr�s	         r.�find_providerszDependencyFinder.find_providersks����"�"�4�(���{�{������=�=���8��%-�d�^�
�!���"�#�M�M�'�2�E���J�J�x�(���
�
��
��
/�"�!�E�"�s�A/�/A=�<A=c���|j|}t�}|D]@}|j|�}|j|j�r�0|j|��B|r"|jd||t
|�f�d}|S|j|�|j|=|D]5}|jj|t��j|��7|j|�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�rTr^s	         r.�try_to_replacezDependencyFinder.try_to_replace�s���&�
�
�5�!���E�	��	!�A��&�&�q�)�G��=�=��!1�!1�2��
�
�a� �	!���L�L�-��5�#�I�.�0�
1��F��
�

�$�$�U�+��
�
�5�!��
>���
�
�%�%�h���6�:�:�1�=�
>��!�!�(�+��F��
rEc��i|_i|_i|_i|_t	|xsg�}d|vr!|jd�|t	gd��z}t
|t�r|x}}tjd|�nE|jj||��x}}|�td|z��tjd|�d|_
t	�}t	|g�}t	|g�}|�rd|j�}|j}	|	|jvr|j!|�n'|j|	}
|
|k7r|j#||
|�|j$|j&z}|j(}t	�}
|r'||vr#dD]}d	|z}||vs�
|
t+|d
|z�z}
� ||z|
z}|D�]�}|j-|�}|�stjd|�|jj||��}|�|s|jj|d��}|�*tjd|�|j/d
|f�n�|j|j0}}||f|jvr|j/|�|j/|�||vr5||vr1|j/|�tjd|j2�|D]x}|j}	|	|jvr4|jj5|t	��j/|��Q|j|	}
|
|k7s�f|j#||
|��z���|r��dt	|jj7��}|D]8}||v|_|j8s�tjd|j2��:tjd|�||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�zUnable 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_distsrsr��ireqts�sreqts�ereqtsrCr_�	all_reqtsr��	providersr��nr�r�r�s                        r.�findzDependencyFinder.find�s���4��
���
������
��+�+��,���K�����u�%��3�=�>�>�K��k�<�0�&�&�D�5��L�L�3�U�;��<�<�.�.�{�;F�/�H�
H�D�5��|�&�'<�{�'J�K�K��L�L��u�-�����5���D�6�{���U�G��
���8�8�:�D��8�8�D��4�-�-�-��%�%�d�+��*�*�4�0���D�=��'�'��e�X�>��&�&��);�);�;�F��(�(�F��U�F��t�}�4�3�E�C����A��K�'��'�$�
��0C�"D�D��E����&�0�I��
D�� �/�/��2�	� ��L�L�!<�a�@�#�|�|�2�2�1�+�2�N�H� �'��#'�<�<�#6�#6�q�d�#6�#K���'����%8�!�<� ���m�Q�%7�8�'�|�|�X�-=�-=�1���q�6����3� �H�H�X�.�!�
�
�h�/���;�4�=�+@�)�-�-�h�7�"�L�L�)E�)1�)B�)B�D�"�D�A��5�5�D��4�#5�#5�5��
�
�-�-�a���7�;�;�A�>� $� 2� 2�4� 8�� �A�:� �/�/��5�(�C�D�+
D�)�f�D�J�J�%�%�'�(���	4�D�)-�]�)B�D�&��)�)����B�!�2�2�4�	4�
	���'��/��h��rEre)NF)rFrGrHrIrWr�r�r�r�r�r�rMrEr.r�r�-s-���6�
G�(�$� �0&�PlrEr�re)Lr.�iorr�loggingrfr|r%r<�ImportError�dummy_threadingrtr5r�compatrrrr	r
rrr
rrr:rrrr�databaserrrr�rr�utilrrrrrrrr r�r!r"r�r#r$�	getLoggerrFr�r&r�r'rkrhr*r/r1�objectrOr�r�r
r+rwr�r�r�r�r�r�rMrEr.�<module>r�s�������	��	�(����3�3�3�3�@�?�4�#�#�#�9�'�	��	�	�8�	$���b�j�j�.�/��
�"�*�*�2�B�D�D�
9���B�J�J�?�@��'�
��F�)�F�@~�f�~�B
.�W�.�bB�g�B�J7�6�7�tw�G�w�t?�w�?�D$�'�$�N�g��8V��V�v%�)�*D�25�7�#�	%��
�	�	��j�v�j��y �(�'�(�s�E5�5	F�F
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!