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

/�g�w���ddlmZddlZddlZddlZddlZddlZddlmZddl	m
Zddl	mZ
dZddlmZddlmZdd	lmZmZdd
lmZmZmZmZmZmZmZmZmZm Z ddl!m"Z"ddl#m$Z$m%Z%ejLe'�Z(Gd
�de)�Z*Gd�de)�Z+Gd�de)�Z,e�Gd�de)�Z-Gd�de)�Z.d�Z/Gd�dej`�Z1y)�)�absolute_importN)�contextmanager)�error)�timeout�)�util)�HTTPHeaderDict)�BaseSSLError�
HTTPException)
�BodyNotHttplibCompatible�DecodeError�	HTTPError�IncompleteRead�InvalidChunkLength�
InvalidHeader�
ProtocolError�ReadTimeoutError�ResponseNotChunked�SSLError)�six)�is_fp_closed�is_response_to_headc��eZdZd�Zd�Zd�Zy)�DeflateDecoderc�R�d|_d|_tj�|_y)NT�)�
_first_try�_data�zlib�
decompressobj�_obj��selfs �>/usr/lib/python3/dist-packages/pip/_vendor/urllib3/response.py�__init__zDeflateDecoder.__init__$s �������
��&�&�(��	rc�.�t|j|�S�N��getattrr!�r#�names  r$�__getattr__zDeflateDecoder.__getattr__)����t�y�y�$�'�'rc���|s|S|js|jj|�S|xj|z
c_	|jj|�}|rd|_d|_|S#tj
$rbd|_t	jtj�|_	|j|j�d|_cYS#d|_wxYwwxYw)NF)rr!�
decompressrrrr �	MAX_WBITS)r#�data�decompresseds   r$r/zDeflateDecoder.decompress,s�����K�����9�9�'�'��-�-��
�
�d��
�	"��9�9�/�/��5�L��"'���!��
�����z�z�	"�#�D�O��*�*�D�N�N�?�;�D�I�
"����t�z�z�2�!��
��T��
��
	"�s%�,A/�/AC$�3C�
C$�	C � C$N��__name__�
__module__�__qualname__r%r,r/�rr$rr#s��)�
(�"rrc��eZdZdZdZdZy)�GzipDecoderStaterr�N)r4r5r6�FIRST_MEMBER�
OTHER_MEMBERS�SWALLOW_DATAr7rr$r9r9Cs���L��M��Lrr9c��eZdZd�Zd�Zd�Zy)�GzipDecoderc��tjdtjz�|_tj
|_y�N�)rr r0r!r9r;�_stater"s r$r%zGzipDecoder.__init__Ks*���&�&�r�D�N�N�':�;��	�&�3�3��rc�.�t|j|�Sr'r(r*s  r$r,zGzipDecoder.__getattr__Or-rc�$�t�}|jtjk(s|st	|�S		||j
j
|�z
}|j
j}|st	|�Stj|_tjdtjz�|_��#tj$rC|j}tj|_|tjk(r
t	|�cYS�wxYwrA)
�	bytearrayrCr9r=�bytesr!r/rrr<�unused_datar r0)r#r1�ret�previous_states    r$r/zGzipDecoder.decompressRs����k���;�;�*�7�7�7�t���:���	
��t�y�y�+�+�D�1�1���9�9�(�(�D���S�z�!�*�8�8�D�K��*�*�2����+>�?�D�I����:�:�
�!%����.�;�;���!�%5�%C�%C�C� ��:�%��
�s�B9�9AD�
DNr3r7rr$r?r?Js��4�(�@rr?c��eZdZd�Zd�Zy)�
BrotliDecoderc���tj�|_t|jd�r|jj|_y|jj
|_y)Nr/)�brotli�Decompressorr!�hasattrr/�processr"s r$r%zBrotliDecoder.__init__nsB���+�+�-�D�I��t�y�y�,�/�"&�)�)�"6�"6���"&�)�)�"3�"3��rc�d�t|jd�r|jj�Sy)N�flushr)rPr!rSr"s r$rSzBrotliDecoder.flushus$���t�y�y�'�*��y�y���(�(�rN)r4r5r6r%rSr7rr$rLrLjs��	4�	rrLc�"�eZdZdZd�Zd�Zd�Zy)�MultiDecodera
    From RFC7231:
        If one or more encodings have been applied to a representation, the
        sender that applied the encodings MUST generate a Content-Encoding
        header field that lists the content codings in the order in which
        they were applied.
    c��|jd�D�cgc]}t|j����c}|_ycc}w)N�,)�split�_get_decoder�strip�	_decoders)r#�modes�ms   r$r%zMultiDecoder.__init__�s+��;@�;�;�s�;K�L�a�,�q�w�w�y�1�L����Ls� =c�<�|jdj�S�Nr)r[rSr"s r$rSzMultiDecoder.flush�s���~�~�a� �&�&�(�(rc�\�t|j�D]}|j|�}�|Sr')�reversedr[r/)r#r1�ds   r$r/zMultiDecoder.decompress�s-���$�.�.�)�	&�A��<�<��%�D�	&��rN)r4r5r6�__doc__r%rSr/r7rr$rUrU{s���M�)�rrUc�|�d|vrt|�S|dk(r
t�St�|dk(r
t�St	�S)NrW�gzip�br)rUr?rNrLr)�modes r$rYrY�s@��
�d�{��D�!�!��v�~��}��
��d�d�l������rc��eZdZdZddgZe�edgz
Zgd�Z																	d'd�Zd�Zd	�Z	d
�Z
ed��Zed��Z
d
�Zd�Zd�Zd�Zeej(fZe�eej(fz
Zd�Zd�Zed��Zd�Zd(d�Zd)d�Zed��Zd�Zd*d�Z d�Z!d�Z"ed��Z#d�Z$d�Z%d�Z&d �Z'd!�Z(d"�Z)d#�Z*d+d$�Z+d%�Z,d&�Z-y),�HTTPResponsea�
    HTTP Response container.

    Backwards-compatible with :class:`http.client.HTTPResponse` but the response ``body`` is
    loaded and decoded on-demand when the ``data`` property is accessed.  This
    class is also compatible with the Python standard library's :mod:`io`
    module, and can hence be treated as a readable object in the context of that
    framework.

    Extra parameters for behaviour not present in :class:`http.client.HTTPResponse`:

    :param preload_content:
        If True, the response's body will be preloaded during construction.

    :param decode_content:
        If True, will attempt to decode the body based on the
        'content-encoding' header.

    :param original_response:
        When this HTTPResponse wrapper is generated from an :class:`http.client.HTTPResponse`
        object, it's convenient to include the original for debug purposes. It's
        otherwise unused.

    :param retries:
        The retries contains the last :class:`~urllib3.util.retry.Retry` that
        was used during the request.

    :param enforce_content_length:
        Enforce content length checking. Body returned by server must match
        value of Content-Length header, if present. Otherwise, raise error.
    re�deflateNrf)i-i.i/i3i4c���t|t�r||_nt|�|_||_||_||_||_||_|
|_||_	||_
d|_d|_d|_
|	|_d|_||_||_|r't|t$j&t(f�r||_|
|_||_t/|d�r||_
d|_d|_|jj5dd�j7�}d�|j9d�D�}d|vrd	|_|j;|�|_|r%|js|j?|�
�|_yyy)Nr�readFztransfer-encoding�c3�<K�|]}|j����y�wr')rZ)�.0�encs  r$�	<genexpr>z(HTTPResponse.__init__.<locals>.<genexpr>�s����>�S�S�Y�Y�[�>�s�rW�chunkedT��decode_content) �
isinstancer	�headers�status�version�reason�strictrt�retries�enforce_content_length�
auto_close�_decoder�_body�_fp�_original_response�_fp_bytes_read�msg�_request_urlr�string_typesrG�_pool�_connectionrPrr�
chunk_left�get�lowerrX�_init_length�length_remainingrl)r#�bodyrvrwrxryrz�preload_contentrt�original_response�pool�
connectionr�r{r|�request_method�request_urlr}�tr_enc�	encodingss                    r$r%zHTTPResponse.__init__�sX��*�g�~�.�"�D�L�)�'�2�D�L�������������,������&<��#�$�����
���
����"3���������'����J�t�c�&6�&6��%>�?��D�J���
�%����4�� ��D�H����������!�!�"5�r�:�@�@�B��>�F�L�L��,=�>�	��	�!��D�L�!%� 1� 1�.� A����4�:�:����.��A�D�J�$.�?rc�j�|j|jvr|jjd�Sy)a
        Should we redirect and where to?

        :returns: Truthy redirect location string if we got a redirect status
            code and valid location. ``None`` if redirect status and no
            location. ``False`` if not a redirect status code.
        �locationF)rw�REDIRECT_STATUSESrvr�r"s r$�get_redirect_locationz"HTTPResponse.get_redirect_locations.���;�;�$�0�0�0��<�<�#�#�J�/�/�rc��|jr|jsy|jj|j�d|_yr')r�r��	_put_connr"s r$�release_connzHTTPResponse.release_conns4���z�z��!1�!1���
�
���T�-�-�.���rc�d�	|j�y#ttttf$rYywxYw)z�
        Read and discard any remaining HTTP response data in the response connection.

        Unread data in the HTTPResponse connection blocks the connection from being released back to the pool.
        N)rlr�SocketErrorr
rr"s r$�
drain_connzHTTPResponse.drain_conns+��	��I�I�K���;��m�D�	��	�s��/�/c�p�|jr|jS|jr|jd��Sy)NT)�
cache_content)rr�rlr"s r$r1zHTTPResponse.data%s2���:�:��:�:���8�8��9�9�4�9�0�0�rc��|jSr')r�r"s r$r�zHTTPResponse.connection.s�����rc�,�t|j�Sr')rr�r"s r$�isclosedzHTTPResponse.isclosed2s���D�H�H�%�%rc��|jS)z�
        Obtain the number of bytes pulled over the wire so far. May differ from
        the amount of content returned by :meth:``urllib3.response.HTTPResponse.read``
        if bytes are encoded on the wire (e.g, compressed).
        )r�r"s r$�tellzHTTPResponse.tell5s���"�"�"rc��|jjd�}|��|jrtj	d�y	t|j
d�D�cgc]
}t|���c}�}t|�dkDrtd|z��|j�}|dkrd}		t|j�}|dvsd	|cxkrd
ksn|dk(rd}|Scc}w#t$rd}Y�BwxYw#t$rd}Y�=wxYw)zM
        Set initial length value for Response content if available.
        zcontent-lengthNz�Received response with both Content-Length and Transfer-Encoding set. This is expressly forbidden by RFC 7230 sec 3.3.2. Ignoring Content-Length and attempting to process response as Transfer-Encoding: chunked.rWrz8Content-Length contained multiple unmatching values (%s)r)��i0�d���HEAD)
rvr�rr�log�warning�setrX�int�lenr�pop�
ValueErrorrw)r#r��length�val�lengthsrws      r$r�zHTTPResponse._init_length=s�����!�!�"2�3�����|�|�������
"��6�<�<��3D�E�C�s�3�x�E�F���w�<�!�#�'�1�39�:���!������A�:�!�F�	�����%�F�
�Z��3�&�#6�3�#6�.�F�:R��F��
��1F���
���
���	��F�	�s6�C�C�+3C�'C,�C�C)�(C)�,C:�9C:c��|jjdd�j�}|j��||jvrt|�|_yd|vre|j
d�D�cgc].}|j�|jvr|j���0}}t|�rt|�|_yyyycc}w)z=
        Set-up the _decoder attribute if necessary.
        �content-encodingrmNrW)	rvr�r�r~�CONTENT_DECODERSrYrXrZr�)r#�content_encoding�er�s    r$�
_init_decoderzHTTPResponse._init_decoderqs��� �<�<�+�+�,>��C�I�I�K���=�=� ��4�#8�#8�8� ,�-=� >��
��(�(�.�3�3�C�8����w�w�y�D�$9�$9�9��G�G�I��	��
�y�>�$0�1A�$B�D�M�"�
)�!��s�-3Cc�(�|s|S	|jr|jj|�}|r||j�z
}|S#|j$r>}|jj	dd�j�}t
d|z|��d}~wwxYw)zN
        Decode the data passed in and potentially flush the decoder.
        r�rmzEReceived response with content-encoding: %s, but failed to decode it.N)r~r/�DECODER_ERROR_CLASSESrvr�r�r
�_flush_decoder)r#r1rt�
flush_decoderr�r�s      r$�_decodezHTTPResponse._decode�s�����K�		��}�}��}�}�/�/��5����D�'�'�)�)�D�����)�)�	�#�|�|�/�/�0B�B�G�M�M�O���'�)9�:���
��	�s�'A�B�9B�Bc��|jr8|jjd�}||jj�zSy)zk
        Flushes the decoder. Should only be called if the decoder is actually
        being used.
        r)r~r/rS)r#�bufs  r$r�zHTTPResponse._flush_decoder�s:��
�=�=��-�-�*�*�3�/�C�����,�,�.�.�.�rc#�BK�d}		d��d}|sL|jr|jj�|jr|jj�|jr,|jj�r|j�yyy#t$rt|jdd��t$r4}dt	|�vrt|��t|jdd��d}~wttf$r}td|z|��d}~wwxYw#|sL|jr|jj�|jr|jj�|jr,|jj�r|j�wwwxYw�w)z�
        Catch low-level python exceptions, instead re-raising urllib3
        variants, so that low-level exceptions are not leaked in the
        high-level api.

        On exit, release the connection back to the pool.
        FNzRead timed out.zread operation timed outzConnection broken: %rT)�
SocketTimeoutrr�r
�strrrr�rr��closer�r�r�)r#�
clean_exitr�s   r$�_error_catcherzHTTPResponse._error_catcher�s������
�+	$�
D��*�J���*�*��+�+�1�1�3�
�#�#��$�$�*�*�,��&�&�4�+B�+B�+K�+K�+M��!�!�#�,N�&��M!�
L�'�t�z�z�4�9J�K�K��
L�-�S��V�;�"�1�+�%�&�t�z�z�4�9J�K�K��!�;�/�
D�#�$;�a�$?��C�C��
D����*�*��+�+�1�1�3�
�#�#��$�$�*�*�,��&�&�4�+B�+B�+K�+K�+M��!�!�#�,N�&�sF�F�B�D�BF�(D�</C+�+D�=D�D�D�BF�Fc�R�|jsJ�d}|r||kDs|jr�|j|kDr�tjs�tjst
jdkr�tj�}d}|�|dk7r_|�t||�}||z}n|}|jj|�}|s	|j�S|j|�~|��Y|dk7r�_|j�S|�|jj|�S|jj�S)a_
        Read a response with the thought that reading the number of bytes
        larger than can fit in a 32-bit int at a time via SSL in some
        known cases leads to an overflow error that has to be prevented
        if `amt` or `self.length_remaining` indicate that a problem may
        happen.

        The known cases:
          * 3.8 <= CPython < 3.9.7 because of a bug
            https://github.com/urllib3/urllib3/issues/2513#issuecomment-1152559900.
          * urllib3 injected with pyOpenSSL-backed SSL-support.
          * CPython < 3.10 only when `amt` does not fit 32-bit int.
        i���)��
ir)
r�r�r�IS_SECURETRANSPORT�IS_PYOPENSSL�sys�version_info�io�BytesIO�minrl�write�getvalue)r#�amt�	c_int_max�buffer�
max_chunk_amt�	chunk_amtr1s       r$�_fp_readzHTTPResponse._fp_read�s
���x�x��x��	���y���)�)�d�.C�.C�i�.O��+�+��"�"�c�&6�&6��&@��Z�Z�\�F�$�M��+�����?� #�C�� 7�I��9�$�C� -�I��x�x�}�}�Y�/�����?�?�$�$����T�"���+�����?�?�$�$�*-��4�8�8�=�=��%�M�d�h�h�m�m�o�Mrc��|j�|�|j}|j�yd}t|jdd�}|j	�5|s|j|�nd}|�d}n_d}|dk7rX|sV|jj
�d}|jr.|jdvr t|j|j��ddd�rd|xjt|�z
c_
|j�|xjt|�zc_|j|||�}|r||_
|S#1swY�qxYw)aT
        Similar to :meth:`http.client.HTTPResponse.read`, but with two additional
        parameters: ``decode_content`` and ``cache_content``.

        :param amt:
            How much of the content to read. If specified, caching is skipped
            because it doesn't make sense to cache partial content as the full
            response.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.

        :param cache_content:
            If True, will save the returned data such that the same result is
            returned despite of the state of the underlying file object. This
            is useful if you want the ``.data`` property to continue working
            after having ``.read()`` the file object. (Overridden if ``amt`` is
            set.)
        NF�closedrTr)rN)r�rtr�r)r�r�r�r|r�rr�r�r�r)r#r�rtr�r��	fp_closedr1s       r$rlzHTTPResponse.reads=��*	
�����!�!�0�0�N��8�8����
��D�H�H�h��6�	�
�
 �
 �
"�	Y�-6�4�=�=��%�C�D��{� $�
� %�
��1�H�T��H�H�N�N�$�$(�M��2�2�t�7L�7L�U�8�-�T�-@�-@�$�BW�BW�X�X�7	Y�:����3�t�9�,���$�$�0��%�%��T��2�%��<�<��n�m�D�D��!��
���O	Y�	Y�s
�A:D?�?Ec#�K�|jr-|j�r|j||��D]}|���yt|j�s0|j||��}|r|��t|j�s�/yy�w)a_
        A generator wrapper for the read() method. A call will block until
        ``amt`` bytes have been read from the connection or until the
        connection is closed.

        :param amt:
            How much of the content to read. The generator will return up to
            much data per iteration, but may return less. This is particularly
            likely when using compressed data. However, the empty string will
            never be returned.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.
        rs)r�rtN)rr�supports_chunked_reads�read_chunkedrr�rl)r#r�rt�liner1s     r$�streamzHTTPResponse.streamYst���� �<�<�D�7�7�9��)�)�#�n�)�M�
���
�
�#�4�8�8�,��y�y�S��y�H����J�	#�4�8�8�,�s�A=B�Bc�2�|j}t|t�s?tjrtj
|�}nt|j
��}t|dd�}|d|||j|j|j||d�|��}|S)a
        Given an :class:`http.client.HTTPResponse` instance ``r``, return a
        corresponding :class:`urllib3.response.HTTPResponse` object.

        Remaining parameters are passed to the HTTPResponse constructor, along
        with ``original_response=r``.
        rzr)r�rvrwrxryrzr�r7)r�rur	r�PY2�from_httplib�itemsr)rwrxry)�ResponseCls�r�response_kwrvrz�resps      r$r�zHTTPResponse.from_httplibss����%�%���'�>�2��w�w�(�5�5�g�>��(�����9����H�a�(���	
����8�8��I�I��8�8���	
��	
���rc�R�tjdtd��|jS)Nz|HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.r:��category�
stacklevel)�warnings�warn�DeprecationWarningrvr"s r$�
getheaderszHTTPResponse.getheaders�s&���
�
�
O�'��		
��|�|�rc�r�tjdtd��|jj	||�S)Nz�HTTPResponse.getheader() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).r:r�)r�r�r�rvr�)r#r+�defaults   r$�	getheaderzHTTPResponse.getheader�s3���
�
�
V�'��		
��|�|����g�.�.rc��|jSr')rvr"s r$�infozHTTPResponse.info�s���|�|�rc���|js|jj�|jr|jj�|js t
jj|�yyr')r�r�r�r�r}r��IOBaser"s r$r�zHTTPResponse.close�sN���{�{��H�H�N�N��������"�"�$�����I�I�O�O�D�!�rc�@�|js)tjjj	|�S|j
�yt
|j
d�r|j
j�St
|j
d�r|j
jSy)NTr�r�)r}r�r�r��__get__r�rPr�r"s r$r�zHTTPResponse.closed�sq������9�9�#�#�+�+�D�1�1�
�X�X�
��
�T�X�X�z�
*��8�8�$�$�&�&�
�T�X�X�x�
(��8�8�?�?�"�rc��|j�td��t|jd�r|jj�Std��)Nz-HTTPResponse has no file to get a fileno from�filenozOThe file-like object this HTTPResponse is wrapped around has no file descriptor)r��IOErrorrPr�r"s r$r�zHTTPResponse.fileno�sI���8�8���I�J�J�
�T�X�X�x�
(��8�8�?�?�$�$��0��
rc��|j�It|jd�r2t|jdd�s|jj�Syyy)NrSr�F)r�rPr)rSr"s r$rSzHTTPResponse.flush�sJ���H�H� �����'�*��D�H�H�h��6��8�8�>�>�#�#�7�+�
!rc��y)NTr7r"s r$�readablezHTTPResponse.readable�s��rc��|jt|��}t|�dk(ry||dt|�t|�Sr_)rlr�)r#�b�temps   r$�readintozHTTPResponse.readinto�s;���y�y��Q�� ���t�9��>��!�A�k��D�	�N��t�9�rc�.�t|jd�S)a
        Checks if the underlying file-like object looks like a
        :class:`http.client.HTTPResponse` object. We do this by testing for
        the fp attribute. If it is present we assume it returns raw chunks as
        processed by read_chunked().
        �fp)rPr�r"s r$r�z#HTTPResponse.supports_chunked_reads�s���t�x�x��&�&rc��|j�y|jjj�}|j	dd�d}	t|d�|_y#t$r|j�t||��wxYw)N�;rrrB)	r�r�r�readlinerXr�r�r�r)r#r�s  r$�_update_chunk_lengthz!HTTPResponse._update_chunk_length�ss���?�?�&���x�x�{�{�#�#�%���z�z�$��"�1�%��	1�!�$��m�D�O���	1��J�J�L�$�T�4�0�0�	1�s�A�&Bc�V�d}|�K|jj|j�}|}|jjd�d|_|S||jkr3|jj|�}|j|z
|_|}|S||jk(rA|jj|�}|jjd�d|_|}|S|jj|j�}|jjd�d|_|S)Nr:)r��
_safe_readr�)r#r��returned_chunk�chunk�values     r$�
_handle_chunkzHTTPResponse._handle_chunk�s
�����;��H�H�'�'����8�E�"�N��H�H����"�"�D�O����4�?�?�
"��H�H�'�'��,�E�"�o�o��3�D�O�"�N����D�O�O�
#��H�H�'�'��,�E��H�H����"�"�D�O�"�N�
��"�X�X�0�0����A�N��H�H����"�"�D�O��rc#�K�|j�|jstd��|j�st	d��|j�5|jr9t|j�r$|jj�	ddd�y|jj�
	ddd�y	|j�|jdk(rn,|j|�}|j||d��}|r|���L|r|j�}|r|��	|jjj!�}|sn|dk(rn�.|jr|jj�ddd�y#1swYyxYw�w)a�
        Similar to :meth:`HTTPResponse.read`, but with an additional
        parameter: ``decode_content``.

        :param amt:
            How much of the content to read. If specified, caching is skipped
            because it doesn't make sense to cache partial content as the full
            response.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.
        zHResponse is not chunked. Header 'transfer-encoding: chunked' is missing.zkBody should be http.client.HTTPResponse like. It should have have an fp attribute which returns raw chunks.NrF)rtr�s
)r�rrrr�rr�r�rr�r�rrr�rr�r�r
)r#r�rtr�decodedr�s      r$r�zHTTPResponse.read_chunkeds�����	
�����|�|�$�B��
��*�*�,�*�P��
�
�
 �
 �
"�)	0��&�&�+>�t�?V�?V�+W��'�'�-�-�/��	)	0�)	0��x�x�{�{�"��)	0�)	0���)�)�+��?�?�a�'���*�*�3�/���,�,��.��'����!�M����-�-�/���!�M���x�x�{�{�+�+�-�����7�?��
��&�&��'�'�-�-�/�S)	0�)	0�)	0�s7�AF
�=E>�	F
�E>�2	F
�;B:E>�5	F
�>F�F
c��|j�Bt|jj�r#|jjdjS|jS)z�
        Returns the URL that was the source of this response.
        If the request that generated this response redirected, this method
        will return the final redirect location.
        ���)r{r��history�redirect_locationr�r"s r$�geturlzHTTPResponse.geturlUsF���<�<�#��D�L�L�,@�,@�(A��<�<�'�'��+�=�=�=��$�$�$rc#�.K�g}|jd��D]d}d|vrM|jd�}dj|�|dzdz��|ddD]	}|dz���|dr|dg}�Qg}�T|j|��f|rdj|���yy�w)NTrs�
rrrr)r�rX�join�append)r#r�r�xs    r$�__iter__zHTTPResponse.__iter__`s��������[�[��[�5�	%�E���~����E�*���h�h�v�&��q��1�E�9�9��q���$�A��e�)�O�$���9�#�B�i�[�F��F��
�
�e�$�	%���(�(�6�"�"��s�BB)rmNrrNrTTNNNNNFNNT)NNF)iNr')NN).r4r5r6rcr�rNr�r%r�r�r��propertyr1r�r�r�r�r�r�rrr�r�r�rr�r�rlr��classmethodr�r�r�r�r�r�r�rSrrr�rrr�rrr7rr$riri�s����@�	�*��
���T�F�"��1�����������
����$����%AB�F� �	��1��1�� �� �&�#�2�hC�&%�d�j�j�1��
���&�,�,��0���,	��5$��5$�n.N�`F�P�4����@�/��"��
��
�	�$���'�1��,D0�L	%�#rri)2�
__future__rr��loggingr�r�r�
contextlibr�socketrr�rr�rNrmr�_collectionsr	r�r
r�
exceptionsrr
rrrrrrrr�packagesr�
util.responserr�	getLoggerr4r��objectrr9r?rLrUrYr�rir7rr$�<module>r+s���&�	��
���%�'�+�	
���(�3�����<��g����!��"�V�"�@�v��@�&�@�<
�����"�6��*
�R#�2�9�9�R#r
¿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!