Current File : //proc/thread-self/root/usr/lib/python3.12/email/__pycache__/_policybase.cpython-312.pyc
�

�(�g�<���dZddlZddlmZddlmZddlmZgd�ZGd�d�Z	d	�Z
d
�ZGd�de	ej�
�Z
eGd�de
��Ze�Zy)zwPolicy framework for the email package.

Allows fine grained feature control of how the package parses and emits data.
�N)�header)�charset)�_has_surrogates)�Policy�Compat32�compat32c�:��eZdZdZ�fd�Zd�Zd�Zd�Zd�Z�xZ	S)�_PolicyBasea�Policy Object basic framework.

    This class is useless unless subclassed.  A subclass should define
    class attributes with defaults for any values that are to be
    managed by the Policy object.  The constructor will then allow
    non-default values to be set for these attributes at instance
    creation time.  The instance will be callable, taking these same
    attributes keyword arguments, and returning a new instance
    identical to the called instance except for those values changed
    by the keyword arguments.  Instances may be added, yielding new
    instances with any non-default values from the right hand
    operand overriding those in the left hand operand.  That is,

        A + B == A(<non-default values of B>)

    The repr of an instance can be used to reconstruct the object
    if and only if the repr of the values can be used to reconstruct
    those values.

    c����|j�D]T\}}t||�rtt|�||��'tdj
||jj���y)z�Create new Policy, possibly overriding some defaults.

        See class docstring for a list of overridable attributes.

        �*{!r} is an invalid keyword argument for {}N)	�items�hasattr�superr
�__setattr__�	TypeError�format�	__class__�__name__)�self�kw�name�valuers    ��(/usr/lib/python3.12/email/_policybase.py�__init__z_PolicyBase.__init__)sc����8�8�:�	8�K�D�%��t�T�"��k�$�3�D�%�@��@�G�G��d�n�n�5�5�7�8�8�		8�c���|jj�D��cgc]\}}dj||���}}}dj|jjdj|��Scc}}w)Nz{}={!r}z{}({})z, )�__dict__r
rrr�join)rrr�argss    r�__repr__z_PolicyBase.__repr__7se��$(�M�M�$7�$7�$9�<� �T�5��!�!�$��.�<��<����t�~�~�6�6��	�	�$��H�H��<s�A2c��|jj|j�}|jj�D]\}}tj|||��|j�D]W\}}t
||�s/tdj||jj���tj|||��Y|S)z�Return a new instance with specified attributes changed.

        The new instance has the same attribute values as the current object,
        except for the changes passed in as keyword arguments.

        r)
r�__new__rr
�objectrrrrr)rr�	newpolicy�attrrs     r�clonez_PolicyBase.clone<s����N�N�*�*�4�>�>�:�	��=�=�.�.�0�	7�K�D�%����y�$��6�	7��8�8�:�	7�K�D�%��4��&��@�G�G��d�n�n�5�5�7�8�8�
���y�$��6�	7��rc��t||�rd}nd}t|j|jj|���)Nz'{!r} object attribute {!r} is read-onlyz!{!r} object has no attribute {!r})r�AttributeErrorrrr)rrr�msgs    rrz_PolicyBase.__setattr__Ns6���4���;�C�5�C��S�Z�Z����(?�(?��F�G�Grc�:�|jdi|j��S)z�Non-default values from right operand override those from left.

        The object returned is a new instance of the subclass.

        �)r&r)r�others  r�__add__z_PolicyBase.__add__Us���t�z�z�+�E�N�N�+�+r)
r�
__module__�__qualname__�__doc__rr r&rr-�
__classcell__)rs@rr
r
s#����*8�I�
�$H�,rr
c�f�|jdd�d}|jdd�d}|dz|zS)N�
�r)�rsplit�split)�doc�	added_docs  r�_append_docr9^s;��

�*�*�T�1�
�a�
 �C�����a�(��+�I���:�	�!�!rc���|jrM|jjd�r2t|jdj|j�|_|jj�D]{\}}|js�|jjd�s�/d�|jD�D]7}t
t
||�d�}|s�t||j�|_�{�}|S)N�+rc3�JK�|]}|j�D]}|����y�w)N)�mro)�.0�base�cs   r�	<genexpr>z%_extend_docstrings.<locals>.<genexpr>hs"����F�D�4�8�8�:�F�a�a�F�a�F�s�!#r0)r0�
startswithr9�	__bases__rr
�getattr)�clsrr%r@r7s     r�_extend_docstringsrFcs���
�{�{�s�{�{�-�-�c�2�!�#�-�-��"2�":�":�C�K�K�H����l�l�(�(�*��
��d��<�<�D�L�L�3�3�C�8�F�C�M�M�F�
���g�a��.�	�:���#.�s�D�L�L�#A�D�L��	
���Jrc���eZdZdZdZdZdZdZdZdZ	dZ
d�Zd	�Zd
�Z
ejd��Zejd��Zejd
��Zejd��Zejd��Zy)ra�
Controls for how messages are interpreted and formatted.

    Most of the classes and many of the methods in the email package accept
    Policy objects as parameters.  A Policy object contains a set of values and
    functions that control how input is interpreted and how output is rendered.
    For example, the parameter 'raise_on_defect' controls whether or not an RFC
    violation results in an error being raised or not, while 'max_line_length'
    controls the maximum length of output lines when a Message is serialized.

    Any valid attribute may be overridden when a Policy is created by passing
    it as a keyword argument to the constructor.  Policy objects are immutable,
    but a new Policy object can be created with only certain values changed by
    calling the Policy instance with keyword arguments.  Policy objects can
    also be added, producing a new Policy object in which the non-default
    attributes set in the right hand operand overwrite those specified in the
    left operand.

    Settable attributes:

    raise_on_defect     -- If true, then defects should be raised as errors.
                           Default: False.

    linesep             -- string containing the value to use as separation
                           between output lines.  Default '\n'.

    cte_type            -- Type of allowed content transfer encodings

                           7bit  -- ASCII only
                           8bit  -- Content-Transfer-Encoding: 8bit is allowed

                           Default: 8bit.  Also controls the disposition of
                           (RFC invalid) binary data in headers; see the
                           documentation of the binary_fold method.

    max_line_length     -- maximum length of lines, excluding 'linesep',
                           during serialization.  None or 0 means no line
                           wrapping is done.  Default is 78.

    mangle_from_        -- a flag that, when True escapes From_ lines in the
                           body of the message by putting a `>' in front of
                           them. This is used when the message is being
                           serialized by a generator. Default: True.

    message_factory     -- the class to use to create new message objects.
                           If the value is None, the default is Message.

    verify_generated_headers
                        -- if true, the generator verifies that each header
                           they are properly folded, so that a parser won't
                           treat it as multiple headers, start-of-body, or
                           part of another header.
                           This is a check against custom Header & fold()
                           implementations.
    Fr3�8bit�NNTc�D�|jr|�|j||�y)aZBased on policy, either raise defect or call register_defect.

            handle_defect(obj, defect)

        defect should be a Defect subclass, but in any case must be an
        Exception subclass.  obj is the object on which the defect should be
        registered if it is not raised.  If the raise_on_defect is True, the
        defect is raised as an error, otherwise the object and the defect are
        passed to register_defect.

        This method is intended to be called by parsers that discover defects.
        The email package parsers always call it with Defect instances.

        N)�raise_on_defect�register_defect�r�obj�defects   r�
handle_defectzPolicy.handle_defect�s"������L����S�&�)rc�:�|jj|�y)a�Record 'defect' on 'obj'.

        Called by handle_defect if raise_on_defect is False.  This method is
        part of the Policy API so that Policy subclasses can implement custom
        defect handling.  The default implementation calls the append method of
        the defects attribute of obj.  The objects used by the email package by
        default that get passed to this method will always have a defects
        attribute with an append method.

        N)�defects�appendrMs   rrLzPolicy.register_defect�s��	�����6�"rc��y)a[Return the maximum allowed number of headers named 'name'.

        Called when a header is added to a Message object.  If the returned
        value is not 0 or None, and there are already a number of headers with
        the name 'name' equal to the value returned, a ValueError is raised.

        Because the default behavior of Message's __setitem__ is to append the
        value to the list of headers, it is easy to create duplicate headers
        without realizing it.  This method allows certain headers to be limited
        in the number of instances of that header that may be added to a
        Message programmatically.  (The limit is not observed by the parser,
        which will faithfully produce as many headers as exist in the message
        being parsed.)

        The default implementation returns None for all header names.
        Nr+)rrs  r�header_max_countzPolicy.header_max_count�s��"rc��t�)aZGiven a list of linesep terminated strings constituting the lines of
        a single header, return the (name, value) tuple that should be stored
        in the model.  The input lines should retain their terminating linesep
        characters.  The lines passed in by the email package may contain
        surrogateescaped binary data.
        ��NotImplementedError)r�sourceliness  r�header_source_parsezPolicy.header_source_parse��
��"�!rc��t�)z�Given the header name and the value provided by the application
        program, return the (name, value) that should be stored in the model.
        rW�rrrs   r�header_store_parsezPolicy.header_store_parse�s
��
"�!rc��t�)awGiven the header name and the value from the model, return the value
        to be returned to the application program that is requesting that
        header.  The value passed in by the email package may contain
        surrogateescaped binary data if the lines were parsed by a BytesParser.
        The returned value should not contain any surrogateescaped data.

        rWr]s   r�header_fetch_parsezPolicy.header_fetch_parse�s
��"�!rc��t�)a�Given the header name and the value from the model, return a string
        containing linesep characters that implement the folding of the header
        according to the policy controls.  The value passed in by the email
        package may contain surrogateescaped binary data if the lines were
        parsed by a BytesParser.  The returned value should not contain any
        surrogateescaped data.

        rWr]s   r�foldzPolicy.folds
��"�!rc��t�)a%Given the header name and the value from the model, return binary
        data containing linesep characters that implement the folding of the
        header according to the policy controls.  The value passed in by the
        email package may contain surrogateescaped binary data.

        rWr]s   r�fold_binaryzPolicy.fold_binaryr[r)rr.r/r0rK�linesep�cte_type�max_line_length�mangle_from_�message_factory�verify_generated_headersrPrLrU�abc�abstractmethodrZr^r`rbrdr+rrrrps���5�n�O��G��H��O��L��O�#��*�&#��&	���"��"�	���"��"�	���"��"�	���	"��	"�	���"��"rr)�	metaclassc�>�eZdZdZdZd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zy
)rz�+
    This particular policy is the backward compatibility Policy.  It
    replicates the behavior of the email package version 5.1.
    Tc��t|t�s|St|�r&tj|t
j|��S|S)N�r�header_name)�
isinstance�strrr�Header�_charset�UNKNOWN8BITr]s   r�_sanitize_headerzCompat32._sanitize_header!s@���%��%��L��5�!��=�=���0D�0D�-1�3�
3��Lrc��|djdd�\}}|jd�dj|dd�z}||jd�fS)a:+
        The name is parsed as everything up to the ':' and returned unmodified.
        The value is determined by stripping leading whitespace off the
        remainder of the first line, joining all subsequent lines together, and
        stripping any trailing carriage return or linefeed characters.

        r�:r4z 	�Nz
)r6�lstripr�rstrip)rrYrrs    rrZzCompat32.header_source_parse-sT��"�!�n�*�*�3��2���e����U�#�b�g�g�k�!�"�o�&>�>���e�l�l�6�*�+�+rc�
�||fS)z>+
        The name and value are returned unmodified.
        r+r]s   rr^zCompat32.header_store_parse9s���e�}�rc�&�|j||�S)z�+
        If the value contains binary data, it is converted into a Header object
        using the unknown-8bit charset.  Otherwise it is returned unmodified.
        )rwr]s   rr`zCompat32.header_fetch_parse?s��
�$�$�T�5�1�1rc�*�|j||d��S)a+
        Headers are folded using the Header folding algorithm, which preserves
        existing line breaks in the value, and wraps each resulting line to the
        max_line_length.  Non-ASCII binary data are CTE encoded using the
        unknown-8bit charset.

        T��sanitize)�_foldr]s   rrbz
Compat32.foldFs���z�z�$���z�5�5rc�h�|j|||jdk(��}|jdd�S)a�+
        Headers are folded using the Header folding algorithm, which preserves
        existing line breaks in the value, and wraps each resulting line to the
        max_line_length.  If cte_type is 7bit, non-ascii binary data is CTE
        encoded using the unknown-8bit charset.  Otherwise the original source
        header is used, with its existing line breaks and/or binary data.

        �7bitr��ascii�surrogateescape)r�rf�encode)rrr�foldeds    rrdzCompat32.fold_binaryPs3�����D�%�$�-�-��2G��H���}�}�W�&7�8�8rc��g}|jd|z�t|t�r`t|�r=|r't	j
|tj|��}n.|j|�d}nt	j
||��}n|}|�Fd}|j�|j}|j|j|j|���|j|j�dj|�S)Nz%s: rp)rqr)re�
maxlinelenrz)rSrrrsrrrtrurvrgr�rer)rrrr��parts�hr�s       rr�zCompat32._fold\s�����
���V�d�]�#��e�S�!��u�%���
�
�e�.6�.B�.B�26�8�A��L�L��'��A��M�M�%�T�:���A��=��J��#�#�/�!�1�1�
��L�L����$�,�,�:��N�O�
���T�\�\�"��w�w�u�~�rN)rr.r/r0rhrwrZr^r`rbrdr�r+rrrrs1���
�L�
�
,��2�6�
9�rr)r0rk�emailrrru�email.utilsr�__all__r
r9rF�ABCMetarrrr+rr�<module>r�ss���
��%�'���I,�I,�X"�

�d"�[�C�K�K�d"�N�c�v�c��c�L�:�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!