Current File : //proc/self/root/lib/python3/dist-packages/twisted/persisted/__pycache__/_tokenize.cpython-312.pyc
�

Ϫ�f�n��*�dZdZdZddlZddlZddlZddlZddlZddl	m
Zddlm
Z
mZddlmZdd	lmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMmNZNmOZOmPZPmQZQmRZRmSZSmTZTmUZUmVZVmWZWmXZXgd
�ZYej�dej��Z\ej�dej��Z]Gd
�dej�dd��Z_d�Z`d�Zad�ZbdZcdZdeceadecz�zebed�zZedZfdZgdZhdZidZje`egeheiej�ZkdZle`dd�ebel�zZmdelzZne`emen�Zoe`deod z�Zpe`epeoek�Zqd!�Zrej�d�d"��Zte`er��Zud#Zvd$Zwd%Zxd&Zye`eud'zeud(z�Zze`eud)zeud*z�Z{e`d+�e|e*d,�-�D��Z}e`d.e}�Z~e`eqe~e{ef�ZeeezZ�e`eud/ze`d0d�zeud1ze`d2d�z�Z�e`d3edez�Z�ece`e�eqe~e�ef�zZ�iZ�er�D]"Z�eve�e�d0z<ewe�e�d2z<exe�e�d'z<eye�e�d(z<�$[�e��Z�e��Z�er�D]DZ�e�d2ze�d0zfD]Z�e��je���e�d(ze�d'zfD]Z�e��je����F[�[�d4Z�Gd5�d6e��Z�Gd7�d8e��Z�Gd9�d:�Z�d;�Z�d<�Z�d=�Z�d>�Z
d?�Z�d@�Z�dA�Z�dB�Z�e�dCk(re��yy)Da�
FIXME:https://github.com/twisted/twisted/issues/3843
This can be removed once t.persisted.aot is removed.
New code should not make use of this.

Tokenization help for Python programs.
vendored from https://github.com/python/cpython/blob/6b825c1b8a14460641ca6f1647d83005c68199aa/Lib/tokenize.py
Licence: https://docs.python.org/3/license.html

tokenize(readline) is a generator that breaks a stream of bytes into
Python tokens.  It decodes the bytes according to PEP-0263 for
determining source file encoding.

It accepts a readline-like method which is called repeatedly to get the
next line of input (or b"" for EOF).  It generates 5-tuples with these
members:

    the token type (see token.py)
    the token (a string)
    the starting (row, column) indices of the token (a 2-tuple of ints)
    the ending (row, column) indices of the token (a 2-tuple of ints)
    the original line (string)

It is designed to match the working of the Python tokenizer exactly, except
that it produces COMMENT tokens for comments and gives type OP for all
operators.  Additionally, all token lists start with an ENCODING token
which tells you which encoding was used to decode the bytes stream.
zKa-Ping Yee <ping@lfw.org>zpGvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro, Raymond Hettinger, Trent Nelson, Michael Foord�N)�open)�BOM_UTF8�lookup)�
TextIOWrapper�)G�AMPER�
AMPEREQUAL�ASYNC�AT�ATEQUAL�AWAIT�
CIRCUMFLEX�CIRCUMFLEXEQUAL�COLON�
COLONEQUAL�COMMA�COMMENT�DEDENT�DOT�DOUBLESLASH�DOUBLESLASHEQUAL�
DOUBLESTAR�DOUBLESTAREQUAL�ELLIPSIS�ENCODING�	ENDMARKER�EQEQUAL�EQUAL�
ERRORTOKEN�EXACT_TOKEN_TYPES�GREATER�GREATEREQUAL�INDENT�ISEOF�
ISNONTERMINAL�
ISTERMINAL�LBRACE�	LEFTSHIFT�LEFTSHIFTEQUAL�LESS�	LESSEQUAL�LPAR�LSQB�MINEQUAL�MINUS�N_TOKENS�NAME�NEWLINE�NL�NOTEQUAL�	NT_OFFSET�NUMBER�OP�PERCENT�PERCENTEQUAL�PLUS�	PLUSEQUAL�RARROW�RBRACE�
RIGHTSHIFT�RIGHTSHIFTEQUAL�RPAR�RSQB�SEMI�SLASH�
SLASHEQUAL�SOFT_KEYWORD�STAR�	STAREQUAL�STRING�TILDE�TYPE_COMMENT�TYPE_IGNORE�VBAR�	VBAREQUAL�tok_name)KrNr&r%r$rr1r6rHr2r#rr,r@r-rArrrBr:r/rFrCrLrr*r!rrr8r'r=rr4r+r"rIrr(r>rr;r.rGrDr9r	rMrr)r?rrrrrr<rrr7r
r
rKrJrErrr3rr0r5�tokenize�generate_tokens�detect_encoding�
untokenize�	TokenInfoz&^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)s^[ \t\f]*(?:[#\r\n]|$)c�"�eZdZd�Zed��Zy)rSc�p�d|jt|jfz}d|j|��zS)Nz%d (%s)z8TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r))�type)rVrN�_replace)�self�annotated_types  �=/usr/lib/python3/dist-packages/twisted/persisted/_tokenize.py�__repr__zTokenInfo.__repr__�s9��"�d�i�i��$�)�)�1D�%E�E��F��m�m��m�0�
1�	
�c��|jtk(r%|jtvrt|jS|jS�N)rVr7�stringr �rXs rZ�
exact_typezTokenInfo.exact_type�s2���9�9��?�t�{�{�.?�?�$�T�[�[�1�1��9�9�r\N)�__name__�
__module__�__qualname__r[�propertyra�r\rZrSrS�s��
����r\rSztype string start end linec�0�ddj|�zdzS)N�(�|�))�join��choicess rZ�grouprn�s������'�"�"�S�(�(r\c��t|�dzS)N�*�rnrls rZ�anyrr�����'�?�S� � r\c��t|�dzS)N�?rqrls rZ�mayberv�rsr\z[ \f\t]*z	#[^\r\n]*z\\\r?\nz\w+z0[xX](?:_?[0-9a-fA-F])+z0[bB](?:_?[01])+z0[oO](?:_?[0-7])+z(?:0(?:_?0)*|[1-9](?:_?[0-9])*)z[eE][-+]?[0-9](?:_?[0-9])*z)[0-9](?:_?[0-9])*\.(?:[0-9](?:_?[0-9])*)?z\.[0-9](?:_?[0-9])*z[0-9](?:_?[0-9])*z[0-9](?:_?[0-9])*[jJ]z[jJ]c
�
�gd�}dh}|D]q}tj|�D]W}tj|D�cgc]}||j�f��c}�D]"}|j	dj|���$�Y�s|Scc}w)N)�b�r�u�f�br�fr�)�
_itertools�permutations�product�upper�addrk)�_valid_string_prefixes�result�prefix�t�crzs      rZ�_all_string_prefixesr��s���>���T�F�(�'���(�(��0�	'�A� �'�'�!�)D�Q�1�a�g�g�i�.�)D�E�
'���
�
�2�7�7�1�:�&�
'�	'�'��M��*Es�Bc�J�tj|tj�Sr^)�re�compile�UNICODE)�exprs rZ�_compiler�s��
�:�:�d�B�J�J�'�'r\z[^'\\]*(?:\\.[^'\\]*)*'z[^"\\]*(?:\\.[^"\\]*)*"z%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''z%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""z'''z"""z'[^\n'\\]*(?:\\.[^\n'\\]*)*'z"[^\n"\\]*(?:\\.[^\n"\\]*)*"c#�FK�|]}tj|����y�wr^)r��escape)�.0�xs  rZ�	<genexpr>r�'s����P�1�"�)�)�A�,�P�s�!T)�reversez\r?\nz'[^\n'\\]*(?:\\.[^\n'\\]*)*�'z"[^\n"\\]*(?:\\.[^\n"\\]*)*�"z
\\\r?\n|\Z�c��eZdZy)�
TokenErrorN�rbrcrdrfr\rZr�r�N���r\r�c��eZdZy)�StopTokenizingNr�rfr\rZr�r�Rr�r\r�c�$�eZdZd�Zd�Zd�Zd�Zy)�Untokenizerc�<�g|_d|_d|_d|_y)Nrr)�tokens�prev_row�prev_col�encodingr`s rZ�__init__zUntokenizer.__init__Ws�������
���
���
r\c��|\}}||jks||jk(r@||jkr1tdj|||j|j���||jz
}|r%|jjd|z�d|_||jz
}|r|jjd|z�yy)Nz+start ({},{}) precedes previous end ({},{})�\
r� )r�r��
ValueError�formatr��append)rX�start�row�col�
row_offset�
col_offsets      rZ�add_whitespacezUntokenizer.add_whitespace]s������S������#����"6�3����;N��=�D�D���d�m�m�T�]�]���
�
�4�=�=�(�
���K�K���v�
�2�3��D�M��4�=�=�(�
���K�K���s�Z�/�0�r\c��t|�}g}d}|D�]N}t|�dk(r|j||��n+|\}}}}	}
|tk(r||_�@|t
k(r�n|tk(r|j|��g|tk(r |j�|	\|_
|_��|ttfvrd}nG|rE|rC|d}|dt|�k\r+|jj|�t|�|_d}|j|�|jj|�|	\|_
|_|ttfvs��3|xjdz
c_
d|_��Qdj!|j�S)NF�T���rrr~)�iter�len�compatrr�rr#r�r�popr�r�r2r3r�r�rk)rX�iterable�it�indents�	startliner��tok_type�tokenr��end�line�indents            rZrRzUntokenizer.untokenizems[��
�(�^�����	��	"�A��1�v��{����A�r�"��01�-�H�e�U�C���8�#� %��
���9�$���6�!����u�%���V�#����
�/2�,��
�t�}���g�r�]�*� �	��w� ������8�s�6�{�*��K�K�&�&�v�.�$'��K�D�M�!�	�����&��K�K���u�%�+.�(�D�M�4�=��G�R�=�(��
�
��"�
� !��
�=	"�>�w�w�t�{�{�#�#r\c���g}|jj}|dttfv}d}t	j
|g|�D]�}|dd\}}	|tk(r|	|_�|ttfvr|	dz
}	|tk(r
|rd|	z}	d}nd}|tk(r|j|	��_|tk(r|j��y|ttfvrd}n|r|r
||d�d}||	���y)NrFr�r�Tr�)r�r�r2r3r�chainrr�r1r6rHr#rr�)
rXr�r�r��toks_appendr��
prevstring�tok�toknum�tokvals
          rZr�zUntokenizer.compat�s������k�k�(�(���!�H��"�
�-�	��
��#�#�U�G�X�6�	 �C� ��!�W�N�F�F���!� &��
���$���'��#�
������ �6�\�F�!�
�"�
�������v�&���6�!����
���G�R�=�(� �	��w��G�B�K�(�!�	����9	 r\N)rbrcrdr�r�rRr�rfr\rZr�r�Vs���1� #$�J" r\r�c��t�}|j|�}|j�|j|j�}|S)aTransform tokens back into Python source code.
    It returns a bytes object, encoded using the ENCODING
    token, which is the first token sequence output by tokenize.

    Each element returned by the iterable must be a token sequence
    with at least two elements, a token number and token value.  If
    only two tokens are passed, the resulting output is poor.

    Round-trip invariant for full input:
        Untokenized source will match input source exactly

    Round-trip invariant for limited input:
        # Output bytes will tokenize back to the input
        t1 = [tok[:2] for tok in tokenize(f.readline)]
        newcode = untokenize(t1)
        readline = BytesIO(newcode).readline
        t2 = [tok[:2] for tok in tokenize(readline)]
        assert t1 == t2
    )r�rRr��encode)r��ut�outs   rZrRrR�s:��(
��B�
�-�-��
!�C�	�{�{���j�j����%���Jr\c��|ddj�jdd�}|dk(s|jd�ry|dvs|jd�ry	|S)
z(Imitates get_normal_name in tokenizer.c.N��_�-�utf-8zutf-8-)zlatin-1�
iso-8859-1ziso-latin-1)zlatin-1-ziso-8859-1-ziso-latin-1-r�)�lower�replace�
startswith)�orig_enc�encs  rZ�_get_normal_namer��s[���3�B�-�
�
�
�
'�
'��S�
1�C�
�g�~�����1��
�6�6�#�.�.�3�;���Or\c�j����	�jj�d�d}d}�fd�}��fd�}|�}|jt�r	d�|dd}d}|s|gfS||�}|r||gfSt
j
|�s||gfS|�}|s||gfS||�}|r|||gfS|||gfS#t$rd�Y��wxYw)	a
    The detect_encoding() function is used to detect the encoding that should
    be used to decode a Python source file.  It requires one argument, readline,
    in the same way as the tokenize() generator.

    It will call readline a maximum of twice, and return the encoding used
    (as a string) and a list of any lines (left as bytes) it has read in.

    It detects the encoding from the presence of a utf-8 bom or an encoding
    cookie as specified in pep-0263.  If both a bom and a cookie are present,
    but disagree, a SyntaxError will be raised.  If the encoding cookie is an
    invalid charset, raise a SyntaxError.  Note that if a utf-8 bom is found,
    'utf-8-sig' is returned.

    If no encoding is specified, then the default of 'utf-8' will be returned.
    NFr�c�2��	��S#t$rYywxYw)Nr\)�
StopIteration��readlines�rZ�read_or_stopz%detect_encoding.<locals>.read_or_stop�s"���	��:����	��	�s�
�	�c����	|jd�}tj|�}|syt
|jd��}	t|��r5|dk7r+��
d}t|��dj��}t|��|d	z
}|S#t$r"d}��dj|��}t|��wxYw#t$r0��d|z}t|��dj�|�}t|��wxYw)
Nr�z'invalid or missing encoding declarationz{} for {!r}rzunknown encoding: zunknown encoding for {!r}: {}zencoding problem: utf-8z encoding problem for {!r}: utf-8z-sig)
�decode�UnicodeDecodeErrorr��SyntaxError�	cookie_re�matchr�rnr�LookupError)r��line_string�msgr�r��	bom_found�filenames     ��rZ�find_cookiez$detect_encoding.<locals>.find_cookie�s#���		#��+�+�g�.�K�����,����#�E�K�K��N�3��	#��8����7�"��#�3�C�"�#�&�&�=�C�C�H�M�C�!�#�&�&����H����;"�	#�;�C��#�#�*�*�3��9���c�"�"�		#���	#���*�X�5���c�"�"�6�<�<�X�x�P���c�"�"�
	#�s�B�B9�+B6�99C2T��	utf-8-sig)�__self__�name�AttributeErrorr�r�blank_rer�)	r�r��defaultr�r��first�secondr�r�s	`      @@rZrQrQ�s����"��$�$�)�)���I��H��G��#�J
�N�E�����!��	��a�b�	�������{���5�!�H���%�� � ��>�>�%� ������
�^�F��������6�"�H���%���(�(��U�F�O�#�#��O�����s�B$�$B2�1B2c���t|d�}	t|j�\}}|jd�t	||d��}d|_|S#t$r|j��wxYw)zXOpen a file in read only mode using the encoding detected by
    detect_encoding().
    �rbrT)�line_bufferingry)�
_builtin_openrQr��seekr�mode�
BaseException�close)r��bufferr��lines�texts     rZrr<sg���8�T�
*�F��)�&�/�/�:���%����A���V�X�d�C����	����������
��s�?A�A)c��t|�\}}tjd�}tj|t	|d�|�}t|j|�S)a�
    The tokenize() generator requires one argument, readline, which
    must be a callable object which provides the same interface as the
    readline() method of built-in file objects.  Each call to the function
    should return one line of input as bytes.  Alternatively, readline
    can be a callable function terminating with StopIteration:
        readline = open(myfile, 'rb').__next__  # Example of alternate readline

    The generator produces 5-tuples with these members: the token type; the
    token string; a 2-tuple (srow, scol) of ints specifying the row and
    column where the token begins in the source; a 2-tuple (erow, ecol) of
    ints specifying the row and column where the token ends in the source;
    and the line on which the token was found.  The line passed is the
    physical line.

    The first token sequence will always be an ENCODING token
    which tells you which encoding was used to decode the bytes stream.
    r\)rQr�repeatr�r��	_tokenize�__next__)r�r��consumed�empty�rl_gens     rZrOrOLsO��&)��2��H�h����c�"�E�
�
�
�h��X�s�(;�U�
C�F��V�_�_�h�/�/r\c
#� K�d}d}dx}x}}d}d\}}	d}
dg}|�|dk(rd}tt|ddd���d}d}
		|
}|�}
|�|
j|�}
|d	z
}dt	|
�}}|r�|
std
|��|j
|
�}|r<|jd�x}}tt||
d|z|||f|
|
z���d\}}	d}
�n�|	r8|
dddk7r0|
d
ddk7r(tt||
z||t	|
�f|
���d}d}
��||
z}|
|
z}
��|dk(�rL|�sI|
s�n�d}||krA|
|dk(r|d	z
}n(|
|dk(r|tzd	ztz}n|
|dk(rd}nn|d	z
}||kr�A||k(r�nx|
|dvrv|
|dk(rG|
|djd�}tt|||f||t	|�zf|
���|t	|�z
}tt|
|d||f|t	|
�f|
������||dkDr-|j|�tt|
d||df||f|
���||dkrN||vrt!dd|||
f��|dd}tt"d||f||f|
���||dkr�;n|
std|df��d}||k�rht%t&�j
|
|�}|�r|j)d	�\}}||f||f|}}}||k(r�L|
|||
|}}||vs|dk(r!|dk7r|dk7rtt*||||
����n�|dvr3|dkDrtt||||
����n�tt,||||
����n�|dk(r*|j/d�rJ�tt||||
����n�|t0vrbt%t2|�}|j
|
|�}|r/|jd�}|
||}tt||||f|
����n$||f}|
|d}|
}
�n|t4vs|ddt4vs|ddt4vr~|ddk(r`||f}t%t2j7|�xs2t2j7|d	�xst2j7|d��}|
|dd	}	}|
}
n�tt||||
���n{|j9�rtt:||||
���nU|dk(rd	}nM|dvr|d	z
}n	|d vr|d	z}tt<||||
���n$tt|
|||f||d	zf|
���|d	z
}||kr��h���|rZ|ddvrS|j?�jAd�s4tt,d|d	z
t	|�f|d	z
t	|�d	zfd���|d	dD]}tt"d|df|dfd����ttBd|df|dfd���y#t$rd}
Y��DwxYw�w)!Nr�
0123456789)r~rr�r�)rrr~r\rzEOF in multi-line string���r����z\
r��	�z#
�#z
r�z3unindent does not match any outer indentation levelz
<tokenize>zEOF in multi-line statement�.z...�
r�r��\z([{z)]})"rSrr�r�r�r�r�r�rHr�tabsize�rstriprr3r�r#�IndentationErrorrr��PseudoToken�spanr6r2�endswith�
triple_quoted�endpats�
single_quoted�get�isidentifierr1r7�stripr�r)r�r��strstart�endprog�lnum�parenlev�	continued�numchars�contstr�needcont�contliner��	last_liner��pos�max�endmatchr��column�
comment_token�pseudomatchr��spos�eposr��initialr�s                           rZrres������H��G�"#�#�D�#�8�i��H���G�X��H��c�G����{�"��H���(�F�F�B�?�?��I��D�
�	�
�I��:�D����;�;�x�(�D���	���c�$�i�S���� �!;�X�F�F��}�}�T�*�H��$�L�L��O�+��c���G�d�4�C�j�0�(�T�3�K��TX����%*�!������d�2�3�i�6�1�d�2�3�i�8�6K����$���4��T��:K�X��������!�D�.��#�d�?���
��]�9����F���)���9��#��a�K�F��#�Y�$�&�$��/�!�3�w�>�F��#�Y�$�&��F���q�����)��c�z���C�y�G�#���9��#�$(���J�$5�$5�f�$=�M�#��%��s���s�S��%7�7�8�����3�}�-�-�C���D���J��s��d�C��I�=N�PT�U�U������#����v�&����T�c�
�T�1�I��c�{�D�Q�Q��7�2�;�&���(�*�M�%�t�S�$�7���"�#�2�,�����T�3�K�$���d�K�K��7�2�;�&�� �!>��q�	�J�J��I��C�i�"�;�/�5�5�d�C�@�K��(�-�-�a�0�
��s�#'��-�$���c�C�d���C�<��!%�e�C��$�u�+�w���h�&��s�N�u��|����#�F�E�4��t�D�D���&��!�|�'��E�4��t�D�D�'����d�D�I�I���^�$�~�~�d�3�3�3�#�G�U�D�$��E�E��m�+�&�w�u�~�6�G�&�}�}�T�3�7�H��&�l�l�1�o�� $�U�3���'���t�d�C�[�$�O�O�$(�%�=��"&�u�v�,��#'����}�,��R�a�y�M�1��R�a�y�M�1��R�y�D�(�$(�%�=��#+�#�K�K��0�5�&�{�{�5��8�4�5�&�{�{�5��8�4�#��
-1���L�!���#'���'���t�T�4�H�H��)�)�+�#�D�%��t�T�B�B���_� !�I��%�'� �A�
�� �E�)� �A�
��#�B��t�T�4�@�@����S�	�D�#�;��s�Q�w������q���i�C�i�s�b	��b�M��'����!�,�,�S�1���R�$��(�C�	�N�3�d�Q�h��I��QR�@R�5S�UW�
�	
��!�"�+�>�����T�1�I��a�y�"�=�=�>�
�I�r�D�!�9�t�Q�i��
<�<��e�	��D�	�s>�:V�	U<�DV�$C;V� I?V�!BV�<V�V�
V�Vc��t|d�S)z�Tokenize a source reading Python code as unicode strings.

    This has the same API as tokenize(), except that it expects the *readline*
    callable to return str objects instead of bytes.
    N)rr�s rZrPrP2s���X�t�$�$r\c�P�
�ddl}d��
d�
fd�	}|jd��}|jdddd	�
�|jddd
dd��|j�}	|jr@|j}t|d�5}t
t|j��}ddd�n&d}ttjjd�}D]g}|j}|jr|j}d|j|j zz}	t#|	d�t$|d�|j&d����iy#1swY�vxYw#t($r8}
|
j*ddd\}}||
j*d||f�Yd}
~
yd}
~
wt,$r5}
|
j*d\}}||
j*d||f�Yd}
~
yd}
~
wt.$r}
||
�Yd}
~
yd}
~
wt0$r}
||
�Yd}
~
yd}
~
wt2$rt#d�Yyt4$r}
�
d|
z��d}
~
wwxYw)Nrc��tjj|�tjjd�y)Nr)�sys�stderr�write)�messages rZ�perrorzmain.<locals>.perror?s&���
�
����!��
�
����r\c���|r|f|z|fz}�d|z�n|r�|�d|���n�d|z�tjd�y)Nz%s:%d:%d: error: %sz	: error: z	error: %sr)r3�exit)r6r��location�argsr7s    �rZ�errorzmain.<locals>.errorCsO�����;��)�W�J�6�D��(�4�/�0�
��h��8�9��;��(�)�����r\zpython -m tokenize)�progr�ruzfilename.pyz'the file to tokenize; defaults to stdin)�dest�nargs�metavar�helpz-ez--exact�exact�
store_truez(display token names using the exact type)r>�actionrAr�z<stdin>z%d,%d-%d,%d:�20�15rr�zinterrupted
zunexpected error: %s)NN)�argparse�ArgumentParser�add_argument�
parse_argsr�r��listrOr�rr3�stdinrVrBrar�r��printrNr_rr;r�r��OSError�KeyboardInterrupt�	Exception)rGr<�parserr;r�r{r�r��
token_type�token_range�errr�r*r7s             @rZ�mainrU;s�������
$�
$�*>�
$�
?�F�
���
���
6�	�������
��
7�������D���=�=��}�}�H��x��.�
4�!��h�q�z�z�2�3��
4�
4�!�H��s�y�y�1�1�4�8�F��	Y�E����J��z�z�"�-�-�
�(�E�K�K�%�)�)�,C�D�K��{�H�Z�4H�%�,�,�W�X�	Y�
4�
4���5��x�x��{�1�Q�'���f�
�c�h�h�q�k�8�d�F�^�4�4���5��x�x��{���f�
�c�h�h�q�k�8�d�F�^�4�4����
�c�8������
�c�
�
����
�o�����%��+�,�
���sg�$E�D<� BE�<E�E�	H%�.F�H%�+G�H%�	G�H%�&G3�3H%�H%�H � H%�__main__)��__doc__�
__author__�__credits__�collections�	functools�	itertoolsrr�r3�builtinsrr��codecsrr�ior�_tokenrr	r
rrr
rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrN�__all__r��ASCIIr�r��
namedtuplerSrnrrrv�
Whitespace�Comment�Ignore�Name�	Hexnumber�	Binnumber�	Octnumber�	Decnumber�	Intnumber�Exponent�
Pointfloat�Expfloat�Floatnumber�
Imagnumber�Numberr��	lru_cacher��StringPrefix�Single�Double�Single3�Double3�Triple�String�sorted�Special�Funny�
PlainToken�Token�ContStr�PseudoExtrasrr�_prefix�setrrr�rzr�rrPr�r�r�rRr�rQrOrrPrUrbrfr\rZ�<module>r�s���:*�
���
���	�
�*�#��H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�TL��\
�B�J�J�@�"�(�(�K�	��2�:�:�0�"�(�(�;��
�&��&�&�{�4P�Q�
� )�!�!��
�
��	�c�*�z�1�2�	2�U�7�^�	C��
��&�	��	� �	�.�	��)�Y�	�9�=�	�(��
�0�2H��	�(�O��
� �(�*���J��)��
�+�[�7�-B�
C�
�	�z�;�	�	2��
� ����T��(��(��*�,�-��
$��	#��
2��
2��	�|�e�#�\�E�%9�	:��	��2�2��2�2�
���P��/@�$�(O�P�
Q��
�h�� ��
�6�5�&�$�
/�
�������1�1�E�#�z�4J�J��1�1�E�#�z�4J�J����]�G�V�4���5��v�u�g�t�L�L��

��#�%�'�G�#�G�G�c�M��#�G�G�c�M��&�G�G�e�O��&�G�G�e�O��	'�
���
���
�	�	��A��#�g�q�3�w�
������!����%�i��U��
#������!����
�q�
��	��	�	�Y�	�^ �^ �B�6
�Z$�z
� 0�2J=�Z%�B�J�z���F�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!