Current File : //usr/lib/python3/dist-packages/pip/_internal/__pycache__/exceptions.cpython-312.pyc
�

/�gR\�
�8�dZddlZddlZddlZddlZddlZddlZddlZddlm	Z	m
Z
mZddlm
Z
mZmZmZmZmZddlmZmZddlmZmZmZddlmZddlmZe
rdd	lmZdd
lm Z ddl!m"Z"ddl#m$Z$ejJe&�Z'd
e(de)fd�Z*d
eee(fdede(de(def
d�Z+Gd�de,�Z-Gd�de-�Z.Gd�de-�Z/Gd�de-�Z0Gd�de-�Z1Gd�de.�Z2Gd �d!e.�Z3Gd"�d#e-�Z4Gd$�d%e0�Z5Gd&�d'e0�Z6Gd(�d)e0�Z7Gd*�d+e0�Z8Gd,�d-e-�Z9Gd.�d/e-�Z:Gd0�d1e-�Z;Gd2�d3e-�Z<Gd4�d5e-�Z=Gd6�d7e0�Z>Gd8�d9e0�Z?Gd:�d;e0�Z@Gd<�d=e0�ZAGd>�d?e.e0�ZBGd@�dAeBe0�ZCGdB�dCe0�ZDGdD�dEe0�ZEGdF�dGeE�ZFGdH�dIeE�ZGGdJ�dKeE�ZHGdL�dMeE�ZIGdN�dOeE�ZJGdP�dQe0�ZKGdR�dSe/�ZLdTej��dU�ZNGdV�dWe.�ZOy)Xz�Exceptions used throughout package.

This module MUST NOT try to import from anything within `pip._internal` to
operate. This is expected to be importable from any/all files within the
subpackage and, thus, should not depend on them.
�N)�chain�groupby�repeat)�
TYPE_CHECKING�Dict�Iterator�List�Optional�Union)�Request�Response)�Console�ConsoleOptions�RenderResult)�escape)�Text)�_Hash)�Literal)�BaseDistribution)�InstallRequirement�s�returnc�2�tjd|�duS)Nz^[a-z]+(-[a-z]+)*$)�re�match)rs �:/usr/lib/python3/dist-packages/pip/_internal/exceptions.py�_is_kebab_caser$s��
�8�8�)�1�-�T�9�9��console�prefix�indentc���t|t�r|}n|j|�}|j|d��|jd|��d��j|j	d���zS)N�ignore)�overflow�
T)�allow_blank)�
isinstancer�
render_str�join�split)rrr r!�texts     r�_prefix_with_indentr,(ss���!�T�����!�!�!�$�����f�x��8�7�;M�;M�
�V�H�
��<N�<�
�d�4�:�:�$�:�'�(�)�)rc��eZdZdZy)�PipErrorzThe base pip error.N��__name__�
__module__�__qualname__�__doc__�rrr.r.9s��rr.c����eZdZUdZeed<ddddd�dddeedeeefd	eeeefd
eeeefdeeeefdeed
df�fd�Z	d
efd�Z
deded
e
fd�Z�xZS)�DiagnosticPipErrora�An error, that presents diagnostic information to the user.

    This contains a bunch of logic, to enable pretty presentation of our error
    messages. Each error gets a unique reference. Each error can also include
    additional context, a hint and/or a note -- which are presented with the
    main error message in a consistent style.

    This is adapted from the error output styling in `sphinx-theme-builder`.
    �	reference�errorN)�kindr7�	note_stmt�linkr9zLiteral["error", "warning"]�message�context�	hint_stmtr:r;rc�6��|�t|d�sJd��|j}t|�sJd��||_||_||_||_||_||_||_t�|�)d|jj�d|j�d��y)Nr7zerror reference not provided!z#error reference must be kebab-case!�<z: �>)
�hasattrr7rr9r<r=r:r>r;�super�__init__�	__class__r0)	�selfr9r7r<r=r>r:r;rEs	        �rrDzDiagnosticPipError.__init__Js�������4��-�N�/N�N�-����I��i�(�O�*O�O�(���	�"���������"���"�����	�
���1�T�^�^�4�4�5�R����7G�q�I�Jrc
��d|jj�d|j�d|j�d|j�d|j
�d|j�d�
S)Nr@z(reference=z
, message=z
, context=z, note_stmt=z, hint_stmt=z)>)rEr0r7r<r=r:r>�rFs r�__repr__zDiagnosticPipError.__repr__hsl������'�'�(�)����*�+��|�|�&�'��|�|�&�'����*�+����*��

�	
rr�optionsc#��K�|jdk(rdnd}d|�d|j�d|j�d���d��|jso|j�Gt	|j
|d|�d	�d|�d
�����t	|j|d|�d�d|�d
�����nHt	|j
|dd����n,|j
��|j�d��|j��|j�|j�d��|j�t	|j|dd����|j�t	|j|dd����|j�d��d|j����yy�w)Nr8�red�yellow�[z bold]z[/]: [bold]z[/]�u]×[/] u]│[/] )r r!u]╰─>[/] z]   [/] u[red]×[/] z  z[magenta bold]note[/]: z      z[cyan bold]hint[/]: zLink: )	r9r7�
ascii_onlyr=r,r<r:r>r;)rFrrJ�colours    r�__rich_console__z#DiagnosticPipError.__rich_console__ss�����
�)�)�w�.��H���&����	�	�{�+�d�n�n�5E�S�I�I����!�!��|�|�'�)��L�L���v�h�g�.��v�h�h�/�	��*��L�L���v�h�l�3��v�h�h�/�	��*��L�L��(��	���,�,���|�|�'����l�l�"��>�>�%����)C��H��>�>�%�%�����0��	�
��>�>�%�%�����-��	�
��9�9� ��H��4�9�9�+�&�&�!�s�E.E0)r0r1r2r3�str�__annotations__r
rrrDrIrrrrR�
__classcell__�rEs@rr6r6=s������N�
/6�#'�15�"�K�,�K��C�=�	K�
�s�D�y�!�K��%��T�	�*�+�
K��E�#�t�)�,�-�K��E�#�t�)�,�-�K��s�m�K�
�K�<	
�#�	
�:'��:'� �:'�
�	:'rr6c��eZdZdZy)�ConfigurationErrorz"General exception in configurationNr/r4rrrXrX�s��,rrXc��eZdZdZy)�InstallationErrorz%General exception during installationNr/r4rrrZrZ�s��/rrZc��eZdZdZy)�UninstallationErrorz'General exception during uninstallationNr/r4rrr\r\�s��1rr\c�0��eZdZdZdZdeddf�fd�Z�xZS)�MissingPyProjectBuildRequireszNRaised when pyproject.toml has `build-system`, but no `build-system.requires`.z'missing-pyproject-build-system-requires�packagerNc�h��t�|�dt|���td�dtd���y)N�Can not process zrThis package has an invalid pyproject.toml file.
The [build-system] table is missing the mandatory `requires` key.�;This is an issue with the package mentioned above, not pip.�+See PEP 518 for the detailed specification.�r<r=r:r>�rCrDrr)rFr_rEs  �rrDz&MissingPyProjectBuildRequires.__init__�sA���
���&�v�g��&7�8��T��T��H�I�	�	
r�r0r1r2r3r7rSrDrUrVs@rr^r^�s#���X�9�I�	
�3�	
�4�	
�	
rr^c�4��eZdZdZdZdededdf�fd�Z�xZS)�InvalidPyProjectBuildRequiresz>Raised when pyproject.toml an invalid `build-system.requires`.z'invalid-pyproject-build-system-requiresr_�reasonrNc�n��t�|�dt|���td|���dtd���y)NrazKThis package has an invalid `build-system.requires` key in pyproject.toml.
rbrcrdre)rFr_rirEs   �rrDz&InvalidPyProjectBuildRequires.__init__�sJ���
���&�v�g��&7�8��$�$*�8�-��T��H�I�	�	
rrfrVs@rrhrh�s*���H�9�I�	
�3�	
��	
��	
�	
rrhc�0�eZdZdZdddeddfd�Zdefd�Zy)	�NoneMetadataErrora4Raised when accessing a Distribution's "METADATA" or "PKG-INFO".

    This signifies an inconsistency, when the Distribution claims to have
    the metadata file (if not, raise ``FileNotFoundError`` instead), but is
    not actually able to produce its content. This may be due to permission
    errors.
    �distr�
metadata_namerNc� �||_||_y)z�
        :param dist: A Distribution object.
        :param metadata_name: The name of the metadata being accessed
            (can be "METADATA" or "PKG-INFO").
        N)rmrn)rFrmrns   rrDzNoneMetadataError.__init__�s����	�*��rc�:�d|j�d|j��S)NzNone z" metadata found for distribution: )rnrmrHs r�__str__zNoneMetadataError.__str__�s#���t�)�)�*�*L�T�Y�Y�K�X�Xr�r0r1r2r3rSrDrqr4rrrlrl�s6���+� �+��+�
�	+�Y��Yrrlc��eZdZdZdefd�Zy)�UserInstallationInvalidzBA --user install is requested on an environment without user site.rc��y)Nz$User base directory is not specifiedr4rHs rrqzUserInstallationInvalid.__str__s��5rN)r0r1r2r3rSrqr4rrrtrt�s��L�6��6rrtc��eZdZdefd�Zy)�InvalidSchemeCombinationrc�x�djd�|jddD��}d|�d|jd�d�S)Nz, c3�2K�|]}t|����y�w�N)rS)�.0�as  r�	<genexpr>z3InvalidSchemeCombination.__str__.<locals>.<genexpr>s����:�a�3�q�6�:�s����zCannot set z and z	 together)r)�args)rF�befores  rrqz InvalidSchemeCombination.__str__s=�����:�4�9�9�S�b�>�:�:���V�H�E�$�)�)�B�-��	�B�BrN)r0r1r2rSrqr4rrrwrws��C��Crrwc��eZdZdZy)�DistributionNotFoundzCRaised when a distribution cannot be found to satisfy a requirementNr/r4rrr�r�
s��Mrr�c��eZdZdZy)�RequirementsFileParseErrorzDRaised when a general error occurs parsing a requirements file line.Nr/r4rrr�r�s��Nrr�c��eZdZdZy)�BestVersionAlreadyInstalledzNRaised when the most up-to-date version of a package is already
    installed.Nr/r4rrr�r�s��rr�c��eZdZdZy)�
BadCommandz0Raised when virtualenv or a command is not foundNr/r4rrr�r�s��:rr�c��eZdZdZy)�CommandErrorz7Raised when there is an error in command-line argumentsNr/r4rrr�r�s��Arr�c��eZdZdZy)�PreviousBuildDirErrorz:Raised when there's a previous conflicting build directoryNr/r4rrr�r�s��Drr�c	�R��eZdZdZ		d	dedeedeeddf�fd�
Zdefd�Z	�xZ
S)
�NetworkConnectionErrorzHTTP connection errorN�	error_msg�response�requestrc����||_||_||_|j�3|js't|d�r|jj|_t�|�|||�y)zc
        Initialize NetworkConnectionError with  `request` and `response`
        objects.
        Nr�)r�r�r�rBrCrD)rFr�r�r�rEs    �rrDzNetworkConnectionError.__init__&sW���!��
����"����M�M�%��L�L���)�,��=�=�0�0�D�L�
����H�g�6rc�,�t|j�Srz)rSr�rHs rrqzNetworkConnectionError.__str__;s���4�>�>�"�"r)NN)r0r1r2r3rSr
r
rrDrqrUrVs@rr�r�#sO����
(,�%)�	7��7��8�$�7��'�"�	7�

�7�*#��#rr�c��eZdZdZy)�InvalidWheelFilenamezInvalid wheel filename.Nr/r4rrr�r�?s��!rr�c��eZdZdZy)�UnsupportedWheelzUnsupported wheel.Nr/r4rrr�r�Cs��rr�c�,�eZdZdZdedefd�Zdefd�Zy)�InvalidWheelzInvalid (e.g. corrupt) wheel.�location�namec� �||_||_yrz)r�r�)rFr�r�s   rrDzInvalidWheel.__init__Js�� ��
���	rrc�<�d|j�d|j�d�S)NzWheel 'z
' located at z is invalid.)r�r�rHs rrqzInvalidWheel.__str__Ns�������=�����|�L�LrNrrr4rrr�r�Gs&��'����C��M��Mrr�c
�8�eZdZdZdddedededdf
d	�Zdefd
�Zy)�MetadataInconsistentaBuilt metadata contains inconsistent information.

    This is raised when the metadata contains values (e.g. name and version)
    that do not match the information previously obtained from sdist filename,
    user-supplied ``#egg=`` value, or an install requirement name.
    �ireqr�field�f_val�m_valrNc�<�||_||_||_||_yrz�r�r�r�r�)rFr�r�r�r�s     rrDzMetadataInconsistent.__init__Zs ����	���
���
���
rc�n�d|j�d|j�d|j�d|j��S)Nz
Requested z has inconsistent z: expected z, but metadata has r�rHs rrqzMetadataInconsistent.__str__bs=�������#5�d�j�j�\�B��
�
�~�%8�����
H�	
rrrr4rrr�r�Rs@����(��14��=@��IL��	
��
��
rr�c�P��eZdZdZdZdededeeeddf�fd�Z	defd	�Z
�xZS)
�InstallationSubprocessErrorzA subprocess call failed.zsubprocess-exited-with-error�command_description�	exit_code�output_linesrNc�(��|�td�}nStjdt|��d��tdj|��ztjd�z}t�|�dt
|��d|��|dd�	�||_||_y)
NzSee above for output.z[red][z lines of output][/]
rOz[red]\[end of output][/]z[green]z)[/] did not run successfully.
exit code: zNThis error originates from a subprocess, and is likely not a problem with pip.�r<r=r>r:)	r�from_markup�lenr)rCrDrr�r�)rFr�r�r��
output_promptrEs     �rrDz$InstallationSubprocessError.__init__ns������ �!8�9�M�� � �6�#�l�*;�)<�<R�!S�T��r�w�w�|�,�-�.��"�"�#>�?�@�
�	����&�!4�5�6�7�'�[�*�"��$�	�	
�$7�� �"��rc�8�|j�d|j��S)Nz
 exited with )r�r�rHs rrqz#InstallationSubprocessError.__str__�s���*�*�+�=����8H�I�Ir)r0r1r2r3r7rS�intr
r	rDrqrUrVs@rr�r�isP���#�.�I�#�!�#��	#�
�t�C�y�)�#�
�
#�@J��Jrr�c�8��eZdZdZdeddf�fd�Zdefd�Z�xZS)�MetadataGenerationFailedzmetadata-generation-failed�package_detailsrNc�F��tt|�dt|�dd��y)Nz4Encountered error while generating package metadata.zSee above for details.rbr�)rCr�rDr)rFr�rEs  �rrDz!MetadataGenerationFailed.__init__�s+���
	�)�4�9�J��?�+�.�S�		:�	
rc��y)Nzmetadata generation failedr4rHs rrqz MetadataGenerationFailed.__str__�s��+r)r0r1r2r7rSrDrqrUrVs@rr�r��s-���,�I�

��

�
�	

�,��,rr�c�8�eZdZdZdd�Zd	d�Zdefd�Zdefd�Z	y)
�
HashErrorsz:Multiple HashError instances rolled into one for reportingrNc��g|_yrz)�errorsrHs rrDzHashErrors.__init__�s	��)+��rc�:�|jj|�yrz)r��append)rFr8s  rr�zHashErrors.append�s�������5�!rc��g}|jjd���t|jd��D]8\}}|j|j�|jd�|D���:|rdj
|�Sy)Nc��|jSrz)�order��es r�<lambda>z$HashErrors.__str__.<locals>.<lambda>�s
��q�w�w�r)�keyc��|jSrzrVr�s rr�z$HashErrors.__str__.<locals>.<lambda>�s
�����rc3�<K�|]}|j����y�wrz)�body)r{r�s  rr}z%HashErrors.__str__.<locals>.<genexpr>�s����9�a�����9�s�r%rO)r��sortrr��head�extendr))rF�lines�cls�
errors_of_clss    rrqzHashErrors.__str__�sv���������.��/�")�$�+�+�7L�"M�	:��C���L�L����"��L�L�9�=�9�9�	:���9�9�U�#�#�rc�,�t|j�Srz)�boolr�rHs r�__bool__zHashErrors.__bool__�s���D�K�K� � r)rN)r8�	HashErrorrN)
r0r1r2r3rDr�rSrqr�r�r4rrr�r��s'��D�,�"����!�$�!rr�c�\�eZdZUdZdZeded<dZdZe	ed<de
fd	�Zde
fd
�Zde
fd�Z
y)r�a�
    A failure to verify a package against known-good hashes

    :cvar order: An int sorting hash exception classes by difficulty of
        recovery (lower being harder), so the user doesn't bother fretting
        about unpinned packages when he has deeper issues, like VCS
        dependencies, to deal with. Also keeps error reports in a
        deterministic order.
    :cvar head: A section heading for display above potentially many
        exceptions of this kind
    :ivar req: The InstallRequirement that triggered this error. This is
        pasted on after the exception is instantiated, because it's not
        typically available earlier.

    Nr�reqrOr~r�rc�(�d|j���S)a=Return a summary of me for display under the heading.

        This default implementation simply prints a description of the
        triggering requirement.

        :param req: The InstallRequirement that provoked this error, with
            its link already populated by the resolver's _populate_link().

        �    )�_requirement_namerHs rr�zHashError.body�s���d�,�,�.�/�0�0rc�@�|j�d|j���S)Nr%)r�r�rHs rrqzHashError.__str__�s���)�)��B�t�y�y�{�m�,�,rc�H�|jrt|j�SdS)z�Return a description of the requirement that triggered me.

        This default implementation returns long description of the req, with
        line numbers

        �unknown package)r�rSrHs rr�zHashError._requirement_name�s��!%���s�4�8�8�}�?�.?�?r)r0r1r2r3r�r
rTr�r�r�rSr�rqr�r4rrr�r��sM��� +/�C��&�	'�.�
�D��E�3�O�
1�c�
1�-��-�@�3�@rr�c��eZdZdZdZdZy)�VcsHashUnsupported�uA hash was provided for a version-control-system-based requirement, but
    we don't have a method for hashing those.rzlCan't verify hashes for these requirements because we don't have a way to hash version control repositories:N�r0r1r2r3r�r�r4rrr�r��s��1�
�E�	;�	rr�c��eZdZdZdZdZy)�DirectoryUrlHashUnsupportedr��zUCan't verify hashes for these file:// requirements because they point to directories:Nr�r4rrr�r��s��1�
�E�	 �	rr�c�4�eZdZdZdZdZdeddfd�Zdefd�Zy)	�HashMissingz2A hash was needed for a requirement but is absent.�awHashes are required in --require-hashes mode, but they are missing from some requirements. Here is a list of those requirements along with the hashes their downloaded archives actually had. Add lines like these to your requirements files to prevent tampering. (If you did not enable --require-hashes manually, note that it turns on automatically when any package has a hash.)�gotten_hashrNc��||_y)zq
        :param gotten_hash: The hash of the (possibly malicious) archive we
            just downloaded
        N)r�)rFr�s  rrDzHashMissing.__init__s��
'��rc���ddlm}d}|jrC|jjr|jjnt|jdd�}dj
|xsd||j�S)Nr)�
FAVORITE_HASHr�z    {} --hash={}:{}r�)�pip._internal.utils.hashesr�r��	is_direct�
original_link�getattr�formatr�)rFr�r_s   rr�zHashMissing.bodysn��<����8�8��8�8�%�%����&�&��T�X�X�u�d�3�
�%�+�+��(�(�-��9I�9I�
�	
r)	r0r1r2r3r�r�rSrDr�r4rrr�r�s3��<�
�E�	�	�'�C�'�D�'�
�c�
rr�c��eZdZdZdZdZy)�HashUnpinnedzPA requirement had a hash specified but was not pinned to a specific
    version.�zaIn --require-hashes mode, all requirements must have their versions pinned with ==. These do not:Nr�r4rrr�r�*s���
�E�	1�	rr�c�^�eZdZdZdZdZdeeeefdeedfddfd	�Z	defd
�Z
defd�Zy)�HashMismatchz�
    Distribution file hash values don't match.

    :ivar package_name: The name of the package that triggered the hash
        mismatch. Feel free to write to this after the exception is raise to
        improve its error message.

    �z�THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.�allowed�gotsrrNc� �||_||_y)z�
        :param allowed: A dict of algorithm names pointing to lists of allowed
            hex digests
        :param gots: A dict of algorithm names pointing to hashes we
            actually got from the files under suspicion
        N)r�r�)rFr�r�s   rrDzHashMismatch.__init__Gs�������	rc�J�d|j��d|j���S)Nr�z:
)r��_hash_comparisonrHs rr�zHashMismatch.bodyQs)���d�,�,�.�/�s�4�3H�3H�3J�2K�L�Lrc�*��dtddfd�}g}|jj�D]W\}}||��|j�fd�|D��|j	d|j
|j
��d���Ydj|�S)aE
        Return a comparison of actual and expected hash values.

        Example::

               Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde
                            or 123451234512345123451234512345123451234512345
                    Got        bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef

        �	hash_namerz
chain[str]c�.�t|gtd��S)Nz    or)rr)r�s r�hash_then_orz3HashMismatch._hash_comparison.<locals>.hash_then_or`s���)��f�X�&6�7�7rc3�@�K�|]}dt���d|�����y�w)z        Expected � N)�next)r{r�r s  �rr}z0HashMismatch._hash_comparison.<locals>.<genexpr>hs#�����U�a�-�d�6�l�^�1�Q�C�@�U�s�z             Got        r%)rSr��itemsr�r�r��	hexdigestr))rFr�r�r��	expectedsr s     @rr�zHashMismatch._hash_comparisonTs����	8�C�	8�L�	8�
��$(�L�L�$6�$6�$8�	� �I�y�!�)�,�F��L�L�U�9�U�U��L�L�*�4�9�9�Y�+?�+I�+I�+K�*L�B�O�
�	��y�y���r)r0r1r2r3r�r�rrSr	rDr�r�r4rrr�r�5sc���
�E�	/�	���S�$�s�)�^� 4��D��g��<N��SW��M�c�M� �#� rr�c��eZdZdZy)�UnsupportedPythonVersionzMUnsupported python version according to Requires-Python package
    metadata.Nr/r4rrrros��rrc	�h��eZdZdZ			d	dedeedeejddf�fd�
Zdefd�Z	�xZ
S)
�!ConfigurationFileCouldNotBeLoadedz8When there are errors while loading a configuration fileNri�fnamer8rc�N��t�|�|�||_||_||_yrz)rCrDrirr8)rFrirr8rEs    �rrDz*ConfigurationFileCouldNotBeLoaded.__init__ws'���	����������
���
rc��|j�d|j�d�}n|j�J�d|j�d�}d|j�|��S)Nz in �.z.
r%zConfiguration file )rr8ri)rF�message_parts  rrqz)ConfigurationFileCouldNotBeLoaded.__str__�sU���:�:�!�!�$�*�*��Q�/�L��:�:�)�)�)� �����B�/�L�$�T�[�[�M�,��@�@r)zcould not be loadedNN)r0r1r2r3rSr
�configparser�ErrorrDrqrUrVs@rrrtsY���B�,�#�.2�		��	���}�	���*�*�+�		�

�	�A��ArrzThe Python environment under z� is managed externally, and may not be
manipulated by the user. Please use specific tooling from the distributor of
the Python installation to interact with this environment instead.
c���eZdZdZdZdeeddf�fd�Zede	efd��Z
edee
jefddfd	��Z�xZS)
�ExternallyManagedEnvironmentaPThe current environment is externally managed.

    This is raised when the current environment is externally managed, as
    defined by `PEP 668`_. The ``EXTERNALLY-MANAGED`` configuration is checked
    and displayed when the error is bubbled up to the user.

    :param error: The error message read from ``EXTERNALLY-MANAGED``.
    zexternally-managed-environmentr8rNc�x��|�tt�}nt|�}t�|�
d|dtd���y)Nz&This environment is externally managedz�If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.z+See PEP 668 for the detailed specification.rd)r�!_DEFAULT_EXTERNALLY_MANAGED_ERRORrCrD)rFr8r=rEs   �rrDz%ExternallyManagedEnvironment.__init__�sE����=��<�=�G��5�k�G�
���<��J�
�H�I�	�
	
rc#��K�	tj}tj|�\}}|�-d|����dD]!}|j	|�\}}}|s�d|�����#d��y#t$rd}Y�AwxYw�w)NzError-)�-�_r)�locale�LC_MESSAGES�	getlocale�AttributeError�	partition)�category�langr�sepr��founds      r�#_iter_externally_managed_error_keysz@ExternallyManagedEnvironment._iter_externally_managed_error_keys�s�����	1��)�)�H��&�&�x�0�G�D�!����4�&�/�!�!�
(��#'�>�>�#�#6� ���q����v�h�'�'�	
(�
�
���	'�"&�D�	'�s(�A1�A �AA1� A.�+A1�-A.�.A1�configc���tjd��}	|j|d��|d}|j�D]1}t	j
t�5|||�cddd�cS	|d�S#1swY�FxYw#t$rY�tttjf$r6ddl
m}tj|�}tjd||��Y�qwxYw)	N)�
interpolationzutf-8)�encodingzexternally-managedr)�VERBOSEzFailed to read %s)�exc_info)r�ConfigParser�readr�
contextlib�suppress�KeyError�OSError�UnicodeDecodeError�ParsingError�pip._internal.utils._logr"�logger�isEnabledFor�warning)r�r�parser�sectionr�r"r#s       r�from_configz(ExternallyManagedEnvironment.from_config�s���
�*�*��>��	K��K�K���K�1��1�2�G��>�>�@�
-���(�(��2�-��w�s�|�,�-�-�
-��4�y��-�-���	���+�\�-F�-F�G�	K�8��*�*�7�3�H��N�N�.���N�J�		K�s7�AB	�A=�'B	�3B	�=B	�B	�		C'�AC'�&C')r0r1r2r3r7r
rSrD�staticmethodrr�classmethodr�pathlib�Pathr2rUrVs@rrr�sy����1�I�
�h�s�m�
��
�"���#�����*���g�l�l�C�'�(��
(���rr)Pr3rr&r�loggingr5r�sys�	itertoolsrrr�typingrrrr	r
r�pip._vendor.requests.modelsrr
�pip._vendor.rich.consolerrr�pip._vendor.rich.markupr�pip._vendor.rich.textr�hashlibrr�pip._internal.metadatar�pip._internal.req.req_installr�	getLoggerr0r-rSr�rr,�	Exceptionr.r6rXrZr\r^rhrlrtrwr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr rrr4rr�<module>rDs������
���	�
�,�,�G�G�9�J�J�*�&����7�@�	��	�	�8�	$��:�c�:�d�:�)��T�3�Y��)�
�)�
�	)�

�)�
�
)�"�y��p'��p'�l-��-�0��0�2�(�2�
�$6�
�"
�$6�
�"Y��Y�86�/�6�C�0�C�N�,�N�O�!2�O��(��
;��;�B�8�B�E�H�E�#�X�#�8"�,�"��(��M�$�M�
�,�
�.&J�"4�6G�&J�R,�:�<M�,�&!�"�!�.+@�!�+@�\����)��'
�)�'
�T�9��7 �9�7 �t�0��
A�(:�A�.)�!�j�j�\�*�%�!�F�#5�Fr
¿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!