Current File : //proc/self/root/usr/lib/python3/dist-packages/urllib3/__pycache__/connection.cpython-312.pyc
�

�g(����ddlmZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZddl
m
Z
ddl
mZddlmZej"rddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZddlmZm Z m!Z!ddl"m#Z#ddl$m%Z%	ddl&Z&e&jNZ(ddl,m-Z-ddl,m.Z.ddl,m/Z/ddl0m1Z1ddl2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8ddl9m:Z:m;Z;m<Z<m=Z=ddl>m?Z?ddlm@ZAddlmBZBmCZCmDZDmEZEmFZFddlGmHZHmIZIddlJmKZKeLZLeMZMej�eO�ZPddd �ZQej�d!dd�ZSej�d"�ZUeVed#�ZWGd$�d%e�ZGd&�d'e�ZXGd(�d)ej��ZZd*d+�																																	d3d,�Z[	d4							d5d-�Z\d6d.�Z]d7d/�Z^Gd0�d1�Z_e&se_ZXeXZ`	d8					d9d2�Zay#e)e*f$rdZ&Gd�de+�Z(Y��AwxYw):�)�annotationsN)�HTTPConnection)�
HTTPException)�ResponseNotReady��timeout)�Literal���HTTPResponse)�_TYPE_PEER_CERT_RET_DICT)�SSLTransport)�HTTPHeaderDict)�assert_header_parsing)�_DEFAULT_TIMEOUT�
_TYPE_TIMEOUT�Timeout)�to_str)�
wait_for_readc��eZdZy)�BaseSSLErrorN)�__name__�
__module__�__qualname__���4/usr/lib/python3/dist-packages/urllib3/connection.pyrr$s��rr)�
_TYPE_BODY)�ProxyConfig)�_ResponseOptions��__version__)�ConnectTimeoutError�HeaderParsingError�NameResolutionError�NewConnectionError�
ProxyError�SystemTimeWarning)�SKIP_HEADER�SKIPPABLE_HEADERS�
connection�ssl_)�body_to_chunks)�assert_fingerprint)�create_urllib3_context�is_ipaddress�resolve_cert_reqs�resolve_ssl_version�ssl_wrap_socket)�CertificateError�match_hostname)�Url�Pi���http�httpsi�z[^-!#$%&'*+.^_`|~0-9a-zA-Z]�auditc�f��eZdZUdZedZded<ejejdfgZ
ded<dZd	ed
<dZded
<ded<ded<ded<d	ed<ded<ded<ded<ded<	d/e
dde
ddd�																	d0�fd�Zed1d��Zej"d2d ��Zd3d!�Z			d4									d5�fd"�
Zd6d#�Zed7d$��Zed7d%��Zed7d&��Zd6�fd'�Z		d8									d9�fd(�
Zd:�fd)�Z		d;dd*d*d*d+�																	d<d,�Z		d;									d=d-�Z		d>�fd.�Z�xZS)?ra�
    Based on :class:`http.client.HTTPConnection` but provides an extra constructor
    backwards-compatibility layer between older and newer Pythons.

    Additional keyword parameters are used to configure attributes of the connection.
    Accepted parameters include:

    - ``source_address``: Set the source address for the current connection.
    - ``socket_options``: Set specific options on the underlying socket. If not specified, then
      defaults are loaded from ``HTTPConnection.default_socket_options`` which includes disabling
      Nagle's algorithm (sets TCP_NODELAY to 1) unless the connection is behind a proxy.

      For example, if you wish to enable TCP Keep Alive in addition to the defaults,
      you might pass:

      .. code-block:: python

         HTTPConnection.default_socket_options + [
             (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
         ]

      Or you may want to disable the defaults by passing an empty list (e.g., ``[]``).
    r9ztyping.ClassVar[int]�default_portr
z0typing.ClassVar[connection._TYPE_SOCKET_OPTIONS]�default_socket_optionsF�bool�is_verifiedNzbool | None�proxy_is_verified�int�	blocksize�tuple[str, int] | None�source_addressz&connection._TYPE_SOCKET_OPTIONS | None�socket_options�_has_connected_to_proxyz_ResponseOptions | None�_response_options�
str | None�_tunnel_host�
int | None�_tunnel_port�_tunnel_scheme�@)rrErCrF�proxy�proxy_configc����t�	|�||tj|�||��||_||_||_d|_d|_d|_	d|_
d|_y)N)�host�portrrErCF)�super�__init__r�resolve_default_timeoutrFrOrPrGrHrJrLrM)
�selfrRrSrrErCrFrOrP�	__class__s
         �rrUzHTTPConnection.__init__�sr���	������3�3�G�<�)��	�	
�-�����
�(���',��$�!%���(,���(,���*.��rc�8�|jjd�S)a�
        Getter method to remove any trailing dots that indicate the hostname is an FQDN.

        In general, SSL certificates don't include the trailing dot indicating a
        fully-qualified domain name, and thus, they don't validate properly when
        checked against a domain name that includes the dot. In addition, some
        servers may not expect to receive the trailing dot when provided.

        However, the hostname with trailing dot is critical to DNS resolution; doing a
        lookup with the trailing dot will properly only resolve the appropriate FQDN,
        whereas a lookup without a trailing dot will search the system's search domain
        list. Thus, it's important to keep the original host around for use only in
        those cases where it's appropriate (i.e., when doing DNS lookup to establish the
        actual TCP connection across which we're going to send HTTP requests).
        �.)�	_dns_host�rstrip�rWs rrRzHTTPConnection.host�s��"�~�~�$�$�S�)�)rc��||_y)z�
        Setter for the `host` property.

        We assume that only urllib3 uses the _dns_host attribute; httplib itself
        only uses `host`, and it seems reasonable that other libraries follow suit.
        N)r[)rW�values  rrRzHTTPConnection.host�s����rc	��	tj|j|jf|j|j
|j��}tr,t!j"d||j|j�|S#tj$r}t|j||�|�d}~wt$r-}t|d|j�d|j�d��|�d}~wt$r}t|d|���|�d}~wwxYw)zoEstablish a socket connection and set nodelay settings on it.

        :return: New socket connection.
        )rErFNzConnection to z timed out. (connect timeout=�)z&Failed to establish a new connection: zhttp.client.connect)r+�create_connectionr[rSrrErF�socket�gaierrorr%rR�
SocketTimeoutr#�OSErrorr&�_HAS_SYS_AUDIT�sysr;)rW�sock�es   r�	_new_connzHTTPConnection._new_conn�s���
	��/�/�������+����#�2�2�#�2�2�	�D�(��I�I�+�T�4�9�9�d�i�i�H����#���	A�%�d�i�i��q�9�q�@���	�%�� �����+H�����VW�X���
��
�	�$��>�q�c�B���
��	�s0�A
B�D�B.�.D�:(C"�"D�.C>�>Dc�^��|dvrtd|�d���t�|�	|||��||_y)Nr8z$Invalid proxy scheme for tunneling: z", must be either 'http' or 'https')rS�headers)�
ValueErrorrT�
set_tunnelrM)rWrRrSrm�schemerXs     �rrozHTTPConnection.set_tunnel�sF����*�*��6�v�j�@b�c��
�	���4�d�G��<�$��rc��|j�|_|jrd|_|j	�t|j�|_y)NT)rkrirJrG�_tunnelr?rOr]s r�connectzHTTPConnection.connect�s?���N�N�$��	����+/�D�(�
�L�L�N�
(,�D�J�J�'7��$rc��|jduS�N)rir]s r�	is_closedzHTTPConnection.is_closeds���y�y�D� � rc�L�|j�yt|jd��S)NFgr)rirr]s r�is_connectedzHTTPConnection.is_connecteds#���9�9��� ����C�8�8�8rc��|jSru)rGr]s r�has_connected_to_proxyz%HTTPConnection.has_connected_to_proxy
s���+�+�+rc���	t�|��d|_d|_d|_d|_d|_d|_d|_d|_	y#d|_d|_d|_d|_d|_d|_d|_d|_	wxYw)NF)
rT�closerir@rArGrHrJrLrM)rWrXs �rr|zHTTPConnection.closes����	'��G�M�O��D�I�$�D��%)�D�"�+0�D�(�%)�D�"� $�D�� $�D��"&�D����D�I�$�D��%)�D�"�+0�D�(�%)�D�"� $�D�� $�D��"&�D��s�A
�
:Bc���tj|�}|r td|�d|j��d���t�|�||||��S)�z+Method cannot contain non-token characters z (found at least ra)�	skip_host�skip_accept_encoding)�_CONTAINS_CONTROL_CHAR_RE�searchrn�grouprT�
putrequest)rW�method�urlrr��matchrXs      �rr�zHTTPConnection.putrequestsg���*�0�0��8����=�f�Z�GX�Y^�Yd�Yd�Yf�Xi�ij�k��
��w�!��C�9�CW�"�
�	
rc�0��td�|D��st�|�|g|���yt|j	��t
vrNdj
tt
�D�cgc]}tj|���c}�}td|�d���ycc}w)r~c3�RK�|]}t|t�xr	|tk(���!y�wru)�
isinstance�strr))�.0�vs  r�	<genexpr>z+HTTPConnection.putheader.<locals>.<genexpr>3s$����K�q�:�a��%�:�!�{�*:�:�K�s�%'z', 'z(urllib3.util.SKIP_HEADER only supports '�'N)�anyrT�	putheaderr�lowerr*�join�sortedr��titlern)rW�header�values�skippable_headersrXs    �rr�zHTTPConnection.putheader1s�����K�F�K�K��G��f�.�v�.�
�F�L�L�N�
#�+<�
<� &���17�8I�1J�K�v����6�"�K�!���:�;L�:M�Q�O��
�	=��Ks� BT)�chunked�preload_content�decode_content�enforce_content_lengthc��|j�%|jj|j�t|||||��|_|�i}td�|D��}	d|	v}
d|	v}|j
|||
|��t|||j��}|j}
|j}|rd|	vrW|jdd	�nDd
|	vrd}n=d|	vrd}n6d}|�|
�0d}|jdd	�n|jd
t|��d|	vr|jdt��|j�D]\}}|j||��|j�|
�^|
D]Y}|s�t!|t�r|j#d�}|r |j%dt'|�|fz��I|j%|��[|r|j%d�yy)N)�request_method�request_urlr�r�r�c3�NK�|]}t|j�����y�wru)rr�)r��ks  rr�z)HTTPConnection.request.<locals>.<genexpr>bs����C�a��q�w�w�y� 1�C�s�#%zaccept-encodingrR)r�r)r�rCztransfer-encodingzTransfer-Encodingr�zcontent-lengthFTzContent-Lengthz
user-agentz
User-Agentzutf-8s%x
%b
s0

)ri�
settimeoutrr rH�	frozensetr�r-rC�chunks�content_lengthr�r��_get_default_user_agent�items�
endheadersr��encode�send�len)rWr�r��bodyrmr�r�r�r��header_keysr�r�
chunks_and_clr�r�r�r_�chunks                  r�requestzHTTPConnection.request?s����9�9� ��I�I� � ����.�"2�!��+�)�#9�"
����?��G��C�7�C�C��0�K�?���k�)�	�����C�.B�i�	�	
�'�t�F�d�n�n�U�
��%�%��&�5�5���"�+�5����2�I�>�
 �;�.���$��3��� ��!�)��)�"&�����':�I�F��N�N�#3�S��5H�I��{�*��N�N�<�)@�)B�C�$�]�]�_�	*�M�F�E��N�N�6�5�)�	*��������

%�����e�S�)�!�L�L��1�E���I�I�o��U��U�0C�C�D��I�I�e�$�

%���I�I�l�#�rc�h�tjdtd��|j||||d��y)z�
        Alternative to the common request method, which sends the
        body with chunked encoding and not as one block
        z�HTTPConnection.request_chunked() is deprecated and will be removed in urllib3 v2.1.0. Instead use HTTPConnection.request(..., chunked=True).���category�
stacklevelT)r�rmr�N)�warnings�warn�DeprecationWarningr�)rWr�r�r�rms     r�request_chunkedzHTTPConnection.request_chunked�s4��	�
�
�
X�'��		
�	
���V�S�t�W�d��Krc
���|j�
t��|j}d|_|jj|j�ddlm}t�|�!�}	t|j�t#|jj%��}||||j&|j(|j*|j,|j.||j0|j2|j ��}|S#ttf$r7}tjdt||j �|d��Yd}~��d}~wwxYw)a
        Get the response from the server.

        If the HTTPConnection is in the correct state, returns an instance of HTTPResponse or of whatever object is returned by the response_class variable.

        If a request has not been sent or if a previous response has not be handled, ResponseNotReady is raised. If the HTTP response indicates that the connection should be closed, then it will be closed before the response is returned. When the connection is closed, the underlying socket is closed.
        Nr
rz$Failed to parse headers (url=%s): %sT)�exc_info)r�rm�status�version�reasonr�r��original_responser�r�r�)rHrrir�r�responserrT�getresponser�msgr$�	TypeError�log�warning�_url_from_connectionr�rr�r�r�r�r�r�r�r�)rW�resp_optionsr�httplib_response�hpermr�rXs       �rr�zHTTPConnection.getresponse�s4����!�!�)�"�$�$��-�-��!%���	
�	�	���T�\�\�*�	+�!�7�.�0��	�!�"2�"6�"6�7�!�!1�!5�!5�!;�!;�!=�>���!��#�*�*�$�,�,�#�*�*�(�8�8�'�6�6�.�#/�#F�#F�'�6�6�$�0�0�
�����/#�I�.�	��K�K�6�$�T�<�+C�+C�D���	
�
�
��	�s�%D�E�-E�Eru)rRr�rSrKrrrErDrCrBrF�&None | connection._TYPE_SOCKET_OPTIONSrO�
Url | NonerP�ProxyConfig | None�return�None�r�r�)r_r�r�r�)r��
socket.socket)NNr9)
rRr�rSrKrm�typing.Mapping[str, str] | Nonerpr�r�r��r�r�)r�r?)FF)
r�r�r�r�rr?r�r?r�r�)r�r�r�r�r�r�)NN)r�r�r�r�r��_TYPE_BODY | Nonermr�r�r?r�r?r�r?r�r?r�r�)
r�r�r�r�r�r�rmr�r�r�)r�r)rrr�__doc__�port_by_schemer=�__annotations__rc�IPPROTO_TCP�TCP_NODELAYr>r@rArrU�propertyrR�setterrkrorsrvrxrzr|r�r�r�r�r��
__classcell__�rXs@rrrSs�����0*8��)?�L�&�?�

�	�	�V�/�/��3�P��L��
�K���&*��{�)��N�*�*�:�:�!�!�.�.�������
 �/�
"2�15��.D� �+/�/��/��/�
�/�/�
/��/�,�/��/�)�/�
�/�F�*��*�$
�[�[�����D �37��%��%��%�1�	%�
�%�
�
%�8��!��!��9��9�
�,��,�
'�& �%*�
��
��
��	
�
#�
�
�

�(
�$#'�37�_$�� $�#�'+�_$��_$��_$� �	_$�
1�_$��_$��_$��_$�!%�_$�
�_$�J#'�37�L��L��L� �	L�
1�L�
�
L�&5�	�5�5rrc���eZdZUdZedZdZded<dZded<dZ	ded<dZ
d	ed
<dZded<dZded
<dZ
ded<dZded<	deddej"ddddddddddddddddd�																																													d�fd�Z									d																			dd�Zdd�Zdd�Z�xZS)�HTTPSConnectionz�
    Many of the parameters to this constructor are passed to the underlying SSL
    socket by means of :py:func:`urllib3.util.ssl_wrap_socket`.
    r:N�int | str | None�	cert_reqsrI�ca_certs�ca_cert_dir�None | str | bytes�ca_cert_data�ssl_versionrK�ssl_minimum_version�ssl_maximum_versionr.rN)rrErCrFrOrPr��assert_hostnamer.�server_hostname�ssl_contextr�r�r�r�r�r��	cert_file�key_file�key_passwordc
����t�|�||||||||��||_||_||_|
|_||_|
|_||_||_	||_
||_|xrtjj|�|_|xrtjj|�|_||_|	�5|j
�|j
j$}	|	|_yt'd�}	|	|_y)N)rSrrErCrFrOrP)rTrUr�r�r�r�r�r�r.r�r�r��os�path�
expanduserr�r�r��verify_moder1r�)rWrRrSrrErCrFrOrPr�r�r.r�r�r�r�r�r�r�r�r�r�r�rXs                       �rrUzHTTPSConnection.__init__�s����6	������)��)��%�	�		
�!��
�"���(���&���.���.���"4���&���#6�� �#6�� � �A�R�W�W�%7�%7��%A��
�&�J�2�7�7�+=�+=�k�+J���(��������+� �,�,�8�8�	�#���.�d�3�	�"��rc
��tjdtd��|�.|j�|jj}ntd�}||_||_||_||_	||_
||_|xrtjj|�|_|xrtjj|�|_|	|_y)zX
        This method should only be called once, before the connection is used.
        z�HTTPSConnection.set_cert() is deprecated and will be removed in urllib3 v2.1.0. Instead provide the parameters to the HTTPSConnection constructor.r�r�N)r�r�r�r�r�r1r�r�r�r�r�r.r�r�r�r�r�r�)
rWr�r�r�r�r�r�r.r�r�s
          r�set_certzHTTPSConnection.set_cert8s���	�
�
�
+�(��	
������+� �,�,�8�8�	�-�d�3�	� ��
�"���"���(���.���"4��� �A�R�W�W�%7�%7��%A��
�&�J�2�7�7�+=�+=�k�+J���(��rc���|j�x|_}|j}d}|j�W|jdk(r%|j|j|�x|_}d}d|_|j�|j}|j�|j}tjj�tk}|r"tjdt�d�t�t!did|�d|j"�d|j$�d	|j&�d
|j(�d|j*�d|j,�d
|j.�d|j0�d|j2�d|j4�d|�d|j6�d|�d|j8�d|j:��}|j<|_|j>|_tA|jB�|_y)NFr:TzSystem time is way off (before z5). This will probably lead to SSL verification errorsrir�r�r�r�r�r�r�r�r�r�r�r��
tls_in_tlsr�r.r)"rkrirRrJrM�_connect_tls_proxyrGrrr��datetime�date�today�RECENT_DATEr�r�r(�#_ssl_wrap_socket_and_match_hostnamer�r�r�r�r�r�r�r�r�r�r�r�r.rcr@r?rO)rWrir�r��is_time_off�sock_and_verifieds      rrszHTTPSConnection.connectas����>�>�+�+��	�D�#�y�y���
����(��"�"�g�-�#'�#:�#:�4�9�9�d�#K�K��	�D�!�
�,0�D�(��L�L�N�"�/�/�O����+�"�2�2�O��m�m�)�)�+�k�9����M�M�5�k�]�C6�6�"�
�@�
��
��n�n�
��(�(�
�!%� 8� 8�	
�
!%� 8� 8�
��]�]�

��(�(�
��*�*�
��n�n�
��]�]�
��*�*�
�,�
��(�(�
�"�
�!�0�0�
�  $�6�6�!
��$&�,�,��	�,�8�8���
(,�D�J�J�'7��$rc��tjt|j�}|j}t|f|j|j|j|j|j|j|j|||j|jddddd��}|j|_|j"S)zY
        Establish a TLS connection to the proxy using the provided SSL context.
        NF)r�r�r�r�r�r�r�r�r�r�r.r�r�r�r�)�typing�castrrPr�r�r�r�r�r�r�r�r�r�r.r@rArc)rW�hostnamerirPr�r�s      rr�z"HTTPSConnection._connect_tls_proxy�s���
�{�{�;��0A�0A�B��"�.�.��?��
��n�n��(�(� $� 8� 8� $� 8� 8��]�]��(�(��*�*�$�#�(�8�8�+�>�>�����#
��&"3�!>�!>��� �'�'�'rru).rRr�rSrKrrrErDrCrBrFr�rOr�rPr�r�r�r��None | str | Literal[False]r.rIr�rIr��ssl.SSLContext | Noner�rIr�rIr�r�r�rKr�rKr�r�r�rIr�rIr�rIr�r�)	NNNNNNNNN)r�rIr�rIr�r�r�rIr�rIr�rr.rIr�rIr�r�r�r�r�)rr�rir�r�z
ssl.SSLSocket)rrrr�r�r=r�r�r�r�r�r�r�r�r.rrr>rUr�rsr�r�r�s@rr�r��s2����
"�'�*�L�"&�I��&��H�j��"�K��"�'+�L�$�+�$(�K�!�(�&*���*�&*���*�%)��
�)�
 �:#�
"2�15��.<�.S�.S� �+/�&*�7;�)-�&*�-1�#�"&�+/�*.�*.�(,� $�#�#'�3:#��:#��:#�
�:#�/�
:#��:#�,�:#��:#�)�:#�$�:#�5�:#�'�:#�$�:#� +�!:#�"�#:#�$ �%:#�&)�':#�((�):#�*(�+:#�,&�-:#�.�/:#�0�1:#�2!�3:#�4
�5:#�| $� $�&*�#'�#�7;�)-�"&�+/�')��')��')�$�	')�
!�')��
')�5�')�'�')� �')�)�')�
�')�R98�v(rr�c�&�eZdZUdZded<ded<y)�_WrappedAndVerifiedSocketz[
    Wrapped socket and whether the connection is
    verified after the TLS handshake
    zssl.SSLSocket | SSLTransportrcr?r@N)rrrr�r�rrrrr�s���

)�(��rrF)r�c�d�d}|�$d}tt|�||t|���}n|}t|�|_|s&|s$|dus tj
stjsd|_|s"|	s |
s|rt|d�r|j�|
�6|
jd�}d|vr|d|jd�}t|�r|}
t||||||	|
|
||��
}	|rt|jd�	�|�nd|jt j"k7rG|js;|dur7|j�}|rd}nt%|d
d�xsd}t'||xs|
|�t)||jt j*k(xst-|���S#t.$r|j1��wxYw)a2Logic for constructing an SSLContext from all TLS parameters, passing
    that down into ssl_wrap_socket, and then doing certificate verification
    either via hostname or fingerprint. This function exists to guarantee
    that both proxies and targets have the same behavior when connecting via TLS.
    FNT)r�r�r�r��load_default_certs�[]�%)
ri�keyfile�certfiler�r�r�r�r�r�r�)�binary_form�hostname_checks_common_name)rcr@)r/r2r1r�r,�IS_PYOPENSSL�HAS_NEVER_CHECK_COMMON_NAME�check_hostname�hasattrr�strip�rfindr0r3�_assert_fingerprint�getpeercert�ssl�	CERT_NONE�getattr�_match_hostnamer�
CERT_REQUIREDr?�
BaseExceptionr|)rir�r�r�r�r�r�r�r�r�r�r�r.r�r�r��default_ssl_context�context�
normalized�ssl_sock�certrs                      rr�r��s���0 ����"��(�+�K�8� 3� 3�'�	�2�	
����+�I�6�G��
	���e�#�����/�/�!&���
�����G�1�2��"�"�$�
�"�$�*�*�4�0�
��*��#�$;�j�&6�&6�s�&;�<�J��
�#�(�O��
���!���!�'����H�#����$�$��$�6�8J�
�
���3�=�=�0��*�*��u�,�-5�-A�-A�-C�D�
#�.3�+��G�%B�E�J�S�e�,�
���2�?�+�
�)���+�+�s�/@�/@�@�(��&�'�
�	
��
������
��s
�B7F�F/c��|jd�}t|�r|}	t|||�y#t$r$}tjd||�||_�d}~wwxYw)Nr	z@Certificate did not match expected hostname: %s. Certificate: %s)rr0r5r4r�r��
_peer_cert)r!�asserted_hostnamer�stripped_hostnamerjs     rrrBsh��*�/�/��5���%�&�-����t�.�0K�L���	����N���	
����
��	�s�
.�	A�A�Ac���djtjdt|�j	���}d|vxsd|v}d}td|r|dk(r|nd��|�}||_|S)	N� z[^a-z]zwrong version numberzunknown protocolz�. Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL to be HTTP. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#https-proxy-error-http-proxyzUnable to connect to proxyr:r~)r��re�splitr�r�r'�	__cause__)�err�proxy_scheme�error_normalized�is_likely_http_proxy�http_proxy_warning�new_errs      r�_wrap_proxy_errorr1\s����x�x�����3�s�8�>�>�3C� D�E���"2�2�	2��!1�1��
	(���
$�!5�,�'�:Q��WY�
Z�	\���G�
�G���Nrc��dt��S)Nzpython-urllib3/r!rrrr�r�ts��
�[�M�*�*rc��eZdZdZy)�DummyConnectionz-Used to detect a failed ConnectionCls import.N)rrrr�rrrr4r4xs��7rr4c��t|t�rdnd}t||j|j|��j
S)zUReturns the URL from a given connection. This is mainly used for testing and logging.r:r9)rprRrSr�)r�r�r6rRrSr�)�connr�rps   rr�r��s3��
#�4��9�W�v�F��f�4�9�9�4�9�9�4�H�L�L�Lr)"rir�r��None | str | intr�r7r�rKr�rKr�rIr�rIr�rIr�rIr�rIr�r�r�rr.rIr�rIr�rr�r?r�r)F)r!z_TYPE_PEER_CERT_RET_DICT | Noner$r�rr?r�r�)r+�	Exceptionr,rIr�r'r�ru)r6z HTTPConnection | HTTPSConnectionr�rIr�r�)b�
__future__rr��loggingr�r(rcrhrr��http.clientr�_HTTPConnectionrrrre�
TYPE_CHECKING�typing_extensionsr	r�r�	util.ssl_r
�util.ssltransportr�_collectionsr�
util.responser�util.timeoutrrr�	util.utilr�	util.waitrr�SSLErrorr�ImportError�AttributeErrorr�_base_connectionrrr �_versionr"�
exceptionsr#r$r%r&r'r(�utilr)r*r+r,�util.requestr-r.rr/r0r1r2r3�util.ssl_match_hostnamer4r5�util.urlr6�ConnectionError�BrokenPipeError�	getLoggerrr�r�r�r��compiler�rrgr��
NamedTuplerr�rr1r�r4�VerifiedHTTPSConnectionr�rrr�<module>rVs���"���	�	�
�
�
��9�6�(�+�	���)�&�3�/�(�0�B�B��$�
���<�<�L�)�8�B�!���C�B�(�@���F��"��!���g����!���s�+���h�m�m�D�!�Q�'��&�B�J�J�'E�F����g�&��U�_�U�pL(�n�L(�^�� 1� 1��6�#{�
�{� �{�"�	{�
$�{�$�
{��{��{��{��{��{�%�{�1�{�#�{� �{� '�!{�"�#{�$�%{�B).��
)����"&��
�	�4�0+�8�8��%�O�*��@D�M�
*�M�2<�M��M��E	�^�$�
�
�C�
�}�
�
�s�G�G�G
¿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!